mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 17:27:36 +00:00
48 lines
1.2 KiB
PHP
48 lines
1.2 KiB
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Cms\Controller\Adminhtml;
|
|
|
|
abstract class Block extends \Magento\Backend\App\Action
|
|
{
|
|
/**
|
|
* Authorization level of a basic admin session
|
|
*
|
|
* @see _isAllowed()
|
|
*/
|
|
const ADMIN_RESOURCE = 'Magento_Cms::block';
|
|
|
|
/**
|
|
* Core registry
|
|
*
|
|
* @var \Magento\Framework\Registry
|
|
*/
|
|
protected $_coreRegistry;
|
|
|
|
/**
|
|
* @param \Magento\Backend\App\Action\Context $context
|
|
* @param \Magento\Framework\Registry $coreRegistry
|
|
*/
|
|
public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry)
|
|
{
|
|
$this->_coreRegistry = $coreRegistry;
|
|
parent::__construct($context);
|
|
}
|
|
|
|
/**
|
|
* Init page
|
|
*
|
|
* @param \Magento\Backend\Model\View\Result\Page $resultPage
|
|
* @return \Magento\Backend\Model\View\Result\Page
|
|
*/
|
|
protected function initPage($resultPage)
|
|
{
|
|
$resultPage->setActiveMenu('Magento_Cms::cms_block')
|
|
->addBreadcrumb(__('CMS'), __('CMS'))
|
|
->addBreadcrumb(__('Static Blocks'), __('Static Blocks'));
|
|
return $resultPage;
|
|
}
|
|
}
|