Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Design.php
Go to the documentation of this file.
1 <?php
7 
13 {
17  protected function _prepareLayout()
18  {
19  $this->setTemplate('Magento_Backend::system/design/index.phtml');
20 
21  $this->getToolbar()->addChild(
22  'add_new_button',
23  \Magento\Backend\Block\Widget\Button::class,
24  [
25  'label' => __('Add Design Change'),
26  'onclick' => "setLocation('" . $this->getUrl('adminhtml/*/new') . "')",
27  'class' => 'add primary add-design-change'
28  ]
29  );
30 
31  $this->getLayout()->getBlock('page.title')->setPageTitle('Store Design Schedule');
32 
33  return parent::_prepareLayout();
34  }
35 }
__()
Definition: __.php:13