Theme.php 956 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Theme\Block\Adminhtml\System\Design;
  7. /**
  8. * Container for theme grid
  9. *
  10. * @api
  11. * @since 100.0.2
  12. */
  13. class Theme extends \Magento\Backend\Block\Widget\Grid\Container
  14. {
  15. /**
  16. * Initialize grid container and prepare controls
  17. *
  18. * @return void
  19. */
  20. public function _construct()
  21. {
  22. parent::_construct();
  23. $this->_blockGroup = 'Magento_Theme';
  24. $this->_controller = 'Adminhtml_System_Design_Theme';
  25. if (is_object($this->getLayout()->getBlock('page.title'))) {
  26. $this->getLayout()->getBlock('page.title')->setPageTitle('Themes');
  27. }
  28. $this->buttonList->remove('add');
  29. }
  30. /**
  31. * Prepare header for container
  32. *
  33. * @return \Magento\Framework\Phrase
  34. */
  35. public function getHeaderText()
  36. {
  37. return __('Themes');
  38. }
  39. }