作者:Atli
项目:docker-magento
/**
* Set tabs
*
* @return \Magento\Connect\Block\Adminhtml\Extension\Custom\Edit\Tabs
*/
protected function _beforeToHtml()
{
// $this->addTab('package', array(
// 'label' => __('Package Info'),
// 'content' => $this->_getTabHtml('package'),
// 'active' => true,
// ));
//
// $this->addTab('release', array(
// 'label' => __('Release Info'),
// 'content' => $this->_getTabHtml('release'),
// ));
//
// $this->addTab('maintainers', array(
// 'label' => __('Authors'),
// 'content' => $this->_getTabHtml('authors'),
// ));
//
// $this->addTab('depends', array(
// 'label' => __('Dependencies'),
// 'content' => $this->_getTabHtml('depends'),
// ));
//
// $this->addTab('contents', array(
// 'label' => __('Contents'),
// 'content' => $this->_getTabHtml('contents'),
// ));
//
// $this->addTab('load', array(
// 'label' => __('Load local Package'),
// 'class' => 'ajax',
// 'url' => $this->getUrl('adminhtml/*/loadtab', array('_current' => true)),
// ));
return parent::_beforeToHtml();
}
作者:dotmaile
项目:dotmailer-magento2-extensio
/**
* Constructor.
*/
public function _construct()
{
parent::_construct();
$this->setId('ddg_rules_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Exclusion Rule'));
}
作者:aies
项目:magento
/**
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('page_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Page Information'));
}
作者:Doabilit
项目:magento2de
/**
* Constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('emizentech_shopbybrand_items_edit_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Item'));
}
作者:ktplKun
项目:TestMagent
protected function _construct()
{
parent::_construct();
$this->setId('testimonial_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Testimonial Information'));
}
作者:mirasvi
项目:module-blo
/**
* {@inheritdoc}
*/
protected function _beforeToHtml()
{
$this->addTab('general_section', ['label' => __('General Information'), 'content' => $this->getLayout()->createBlock('Mirasvit\\Blog\\Block\\Adminhtml\\Post\\Edit\\Tab\\General')->toHtml()]);
$this->addTab('meta_section', ['label' => __('Search Engine Optimization'), 'content' => $this->getLayout()->createBlock('Mirasvit\\Blog\\Block\\Adminhtml\\Post\\Edit\\Tab\\Meta')->toHtml()]);
$this->addTab('products_section', ['label' => __('Related Products'), 'content' => $this->getLayout()->createBlock('Mirasvit\\Blog\\Block\\Adminhtml\\Post\\Edit\\Tab\\Products')->toHtml()]);
return parent::_beforeToHtml();
}
作者:aies
项目:magento
/**
* Initialize tabs and define tabs block settings
*
* @return void
*/
public function _construct()
{
parent::_construct();
$this->setId('theme_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Theme'));
}
作者:kidaa3
项目:magento2-platforms
/**
* Initialize tab
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('billing_agreement_view_tabs');
$this->setDestElementId('billing_agreement_view');
$this->setTitle(__('Billing Agreement View'));
}
作者:aies
项目:magento
/**
* @return $this
*/
protected function _beforeToHtml()
{
$this->addTab('main', array('label' => __('Properties'), 'title' => __('Properties'), 'content' => $this->getChildHtml('main'), 'active' => true));
$this->addTab('labels', array('label' => __('Manage Labels'), 'title' => __('Manage Labels'), 'content' => $this->getChildHtml('labels')));
$this->addTab('front', array('label' => __('Frontend Properties'), 'title' => __('Frontend Properties'), 'content' => $this->getChildHtml('front')));
return parent::_beforeToHtml();
}
作者:shabbirvividad
项目:magento
/**
* Initialize integration edit page tabs
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('integration_edit_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Basic Settings'));
}
作者:artmous
项目:Umc_Bas
/**
* set form data
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('umc_base_module_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Module Creator'));
}
作者:pradeep-wagent
项目:magento
/**
* Internal constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('widget_instace_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Widget'));
}
作者:osmansorka
项目:magento2-blog-modul
/**
* Class constructor
*
* @return void
*/
protected function _construct()
{
parent::_construct();
$this->setId('post_edit_tabs');
$this->setDestElementId('edit_form');
$this->setTitle(__('Category Information'));
}
作者:mageplaz
项目:magento-2-blog-extensio
/**
* Prepare Layout Content
*
* @return $this
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
*/
protected function _prepareLayout()
{
$this->addTab('category', ['label' => __('Category information'), 'content' => $this->getLayout()->createBlock('Mageplaza\\Blog\\Block\\Adminhtml\\Category\\Edit\\Tab\\Category', 'mageplaza_blog_category_edit_tab_category')->toHtml()]);
$this->addTab('post', ['label' => __('Posts'), 'content' => $this->getLayout()->createBlock('Mageplaza\\Blog\\Block\\Adminhtml\\Category\\Edit\\Tab\\Post', 'mageplaza_blog_category_edit_tab_post')->toHtml()]);
// dispatch event add custom tabs
$this->_eventManager->dispatch('adminhtml_mageplaza_blog_category_tabs', ['tabs' => $this]);
return parent::_prepareLayout();
}
作者:aies
项目:magento
/**
* @return $this
*/
protected function _prepareLayout()
{
$role = $this->_coreRegistry->registry('current_role');
$this->addTab('info', $this->getLayout()->createBlock('Magento\\User\\Block\\Role\\Tab\\Info')->setRole($role)->setActive(true));
if ($role->getId()) {
$this->addTab('roles', array('label' => __('Role Users'), 'title' => __('Role Users'), 'content' => $this->getLayout()->createBlock('Magento\\User\\Block\\Role\\Tab\\Users', 'role.users.grid')->toHtml()));
}
return parent::_prepareLayout();
}