Design.php 899 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Block\System;
  7. /**
  8. * @api
  9. * @since 100.0.2
  10. */
  11. class Design extends \Magento\Backend\Block\Template
  12. {
  13. /**
  14. * {@inheritdoc}
  15. */
  16. protected function _prepareLayout()
  17. {
  18. $this->setTemplate('Magento_Backend::system/design/index.phtml');
  19. $this->getToolbar()->addChild(
  20. 'add_new_button',
  21. \Magento\Backend\Block\Widget\Button::class,
  22. [
  23. 'label' => __('Add Design Change'),
  24. 'onclick' => "setLocation('" . $this->getUrl('adminhtml/*/new') . "')",
  25. 'class' => 'add primary add-design-change'
  26. ]
  27. );
  28. $this->getLayout()->getBlock('page.title')->setPageTitle('Store Design Schedule');
  29. return parent::_prepareLayout();
  30. }
  31. }