Tabs.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Review\Block\Adminhtml\Rating\Edit;
  7. /**
  8. * Admin rating left menu
  9. *
  10. * @author Magento Core Team <core@magentocommerce.com>
  11. */
  12. class Tabs extends \Magento\Backend\Block\Widget\Tabs
  13. {
  14. /**
  15. * @return void
  16. */
  17. protected function _construct()
  18. {
  19. parent::_construct();
  20. $this->setId('rating_tabs');
  21. $this->setDestElementId('edit_form');
  22. $this->setTitle(__('Rating Information'));
  23. }
  24. /**
  25. * @return $this
  26. */
  27. protected function _beforeToHtml()
  28. {
  29. $this->addTab(
  30. 'form_section',
  31. [
  32. 'label' => __('Rating Information'),
  33. 'title' => __('Rating Information'),
  34. 'content' => $this->getLayout()
  35. ->createBlock(\Magento\Review\Block\Adminhtml\Rating\Edit\Tab\Form::class)
  36. ->toHtml()
  37. ]
  38. );
  39. return parent::_beforeToHtml();
  40. }
  41. }