Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Tabs.php
Go to the documentation of this file.
1 <?php
7 
13 class Tabs extends \Magento\Backend\Block\Widget\Tabs
14 {
18  protected function _construct()
19  {
20  parent::_construct();
21  $this->setId('rating_tabs');
22  $this->setDestElementId('edit_form');
23  $this->setTitle(__('Rating Information'));
24  }
25 
29  protected function _beforeToHtml()
30  {
31  $this->addTab(
32  'form_section',
33  [
34  'label' => __('Rating Information'),
35  'title' => __('Rating Information'),
36  'content' => $this->getLayout()
37  ->createBlock(\Magento\Review\Block\Adminhtml\Rating\Edit\Tab\Form::class)
38  ->toHtml()
39  ]
40  );
41  return parent::_beforeToHtml();
42  }
43 }
__()
Definition: __.php:13