Tabs.php 896 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Backend\Block\System\Design\Edit;
  7. class Tabs extends \Magento\Backend\Block\Widget\Tabs
  8. {
  9. /**
  10. * @return void
  11. */
  12. protected function _construct()
  13. {
  14. parent::_construct();
  15. $this->setId('design_tabs');
  16. $this->setDestElementId('design-edit-form');
  17. $this->setTitle(__('Design Change'));
  18. }
  19. /**
  20. * {@inheritdoc}
  21. */
  22. protected function _prepareLayout()
  23. {
  24. $this->addTab(
  25. 'general',
  26. [
  27. 'label' => __('General'),
  28. 'content' => $this->getLayout()->createBlock(
  29. \Magento\Backend\Block\System\Design\Edit\Tab\General::class
  30. )->toHtml()
  31. ]
  32. );
  33. return parent::_prepareLayout();
  34. }
  35. }