mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
32 lines
848 B
PHP
32 lines
848 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Search\Controller\Adminhtml;
|
|
|
|
use Magento\Backend\App\Action;
|
|
use Magento\Framework\Controller\ResultFactory;
|
|
|
|
abstract class Term extends Action
|
|
{
|
|
/**
|
|
* Authorization level of a basic admin session
|
|
*
|
|
* @see _isAllowed()
|
|
*/
|
|
const ADMIN_RESOURCE = 'Magento_Search::search';
|
|
|
|
/**
|
|
* @return \Magento\Backend\Model\View\Result\Page
|
|
*/
|
|
protected function createPage()
|
|
{
|
|
/** @var \Magento\Backend\Model\View\Result\Page $resultPage */
|
|
$resultPage = $this->resultFactory->create(ResultFactory::TYPE_PAGE);
|
|
$resultPage->setActiveMenu('Magento_Search::search_terms')
|
|
->addBreadcrumb(__('Search'), __('Search'));
|
|
return $resultPage;
|
|
}
|
|
}
|