![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/mageworx/module-seoxtemplates/Controller/Adminhtml/Templatebrand/ |
<?php /** * Copyright © MageWorx. All rights reserved. * See LICENSE.txt for license details. */ namespace MageWorx\SeoXTemplates\Controller\Adminhtml\Templatebrand; use Magento\Backend\App\Action; use Magento\Backend\App\Action\Context; use Magento\Framework\View\Result\PageFactory; class Index extends Action { /** * @var \Magento\Framework\View\Result\PageFactory */ protected $resultPageFactory; /** * @var \Magento\Backend\Model\View\Result\Page */ protected $resultPage; /** * @param Context $context * @param PageFactory $resultPageFactory */ public function __construct( Context $context, PageFactory $resultPageFactory ) { parent::__construct($context); $this->resultPageFactory = $resultPageFactory; } /** * @return \Magento\Backend\Model\View\Result\Page|\Magento\Framework\View\Result\Page */ public function execute() { $this->setPageData(); return $this->getResultPage(); } /** * Instantiate result page object * * @return \Magento\Backend\Model\View\Result\Page|\Magento\Framework\View\Result\Page */ public function getResultPage() { if (is_null($this->resultPage)) { $this->resultPage = $this->resultPageFactory->create(); } return $this->resultPage; } /** * Set page data * * @return $this */ protected function setPageData() { $resultPage = $this->getResultPage(); $resultPage->addBreadcrumb(__('SEO Brand Page Templates'), __('SEO Brand Page Templates')); $resultPage->getConfig()->getTitle()->prepend(__('SEO Brand Page Templates')); return $this; } /** * Init action * * @return $this */ protected function _initAction() { $this->_view->loadLayout(); $this->_addBreadcrumb( __('Templates for Brand'), __('Templates for Brand') ); return $this; } /** * Is access to section allowed * * @return bool */ protected function _isAllowed() { return $this->_authorization->isAllowed('MageWorx_SeoXTemplates::templatebrand'); } }