Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Block.php
Go to the documentation of this file.
1 <?php
7 
8 abstract class Block extends \Magento\Backend\App\Action
9 {
15  const ADMIN_RESOURCE = 'Magento_Cms::block';
16 
22  protected $_coreRegistry;
23 
28  public function __construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry)
29  {
30  $this->_coreRegistry = $coreRegistry;
31  parent::__construct($context);
32  }
33 
40  protected function initPage($resultPage)
41  {
42  $resultPage->setActiveMenu('Magento_Cms::cms_block')
43  ->addBreadcrumb(__('CMS'), __('CMS'))
44  ->addBreadcrumb(__('Static Blocks'), __('Static Blocks'));
45  return $resultPage;
46  }
47 }
__()
Definition: __.php:13
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\Registry $coreRegistry)
Definition: Block.php:28