本文整理汇总了PHP中Magento\Backend\Block\Widget\Tabs::_beforeToHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP Tabs::_beforeToHtml方法的具体用法?PHP Tabs::_beforeToHtml怎么用?PHP Tabs::_beforeToHtml使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Magento\Backend\Block\Widget\Tabs
的用法示例。
在下文中一共展示了Tabs::_beforeToHtml方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _beforeToHtml
/**
* @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();
}
示例2: _beforeToHtml
/**
* {@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();
}
示例3: _beforeToHtml
/**
* 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();
}
示例4: _beforeToHtml
/**
* {@inheritdoc}
*/
protected function _beforeToHtml()
{
$generalBlock = '\\Mirasvit\\Search\\Block\\Adminhtml\\Index\\Edit\\Tab\\General';
$attributesBlock = '\\Mirasvit\\Search\\Block\\Adminhtml\\Index\\Edit\\Tab\\Attributes';
$propertiesBlock = '\\Mirasvit\\Search\\Block\\Adminhtml\\Index\\Edit\\Tab\\Properties';
$this->addTab('general', ['label' => __('General Information'), 'title' => __('General Information'), 'content' => $this->getLayout()->createBlock($generalBlock)->toHtml()]);
if ($this->getModel()->getId()) {
$this->addTab('attributes', ['label' => __('Searchable Attributes'), 'title' => __('Searchable Attributes'), 'content' => $this->getLayout()->createBlock($attributesBlock)->toHtml()]);
if (count($this->getModel()->getIndexInstance()->getFieldsets())) {
$this->addTab('properties', ['label' => __('Additional Options'), 'title' => __('Additional Options'), 'content' => $this->getLayout()->createBlock($propertiesBlock)->toHtml()]);
}
}
return parent::_beforeToHtml();
}
示例5: _beforeToHtml
/**
* @return $this
*/
protected function _beforeToHtml()
{
$this->addTab('main_section', ['label' => __('User Info'), 'title' => __('User Info'), 'content' => $this->getLayout()->createBlock('Magento\\User\\Block\\User\\Edit\\Tab\\Main')->toHtml(), 'active' => true]);
$this->addTab('roles_section', ['label' => __('User Role'), 'title' => __('User Role'), 'content' => $this->getLayout()->createBlock('Magento\\User\\Block\\User\\Edit\\Tab\\Roles', 'user.roles.grid')->toHtml()]);
return parent::_beforeToHtml();
}
示例6: _beforeToHtml
/**
* @return $this
*/
protected function _beforeToHtml()
{
$this->addTab('ip_info', ['label' => __('General'), 'title' => __('General'), 'content' => $this->getLayout()->createBlock('Rapidmage\\Firewall\\Block\\Adminhtml\\Blackip\\Edit\\Tab\\Info')->toHtml(), 'active' => true]);
return parent::_beforeToHtml();
}
示例7: _beforeToHtml
/**
* @return $this
*/
protected function _beforeToHtml()
{
$this->addTab('manufacturer_info', ['label' => __('General'), 'title' => __('General'), 'content' => $this->getLayout()->createBlock('Ktpl\\Manufacturer\\Block\\Adminhtml\\Manufacturer\\Edit\\Tab\\Info')->toHtml(), 'active' => true]);
$this->addTab('related', ['label' => __('Related Products'), 'url' => $this->getUrl('catalog/product/related', ['_current' => true]), 'class' => 'ajax']);
return parent::_beforeToHtml();
}
示例8: _beforeToHtml
protected function _beforeToHtml()
{
$this->addTab('form_section', ['label' => __('Team Info'), 'title' => __('Team Info'), 'content' => $this->getLayout()->createBlock('Dys\\Team\\Block\\Adminhtml\\Team\\Edit\\Tab\\Main')->toHtml()]);
$this->addTab('form_content', ['label' => __('Team Content'), 'title' => __('Team Content'), 'content' => $this->getLayout()->createBlock('Dys\\Team\\Block\\Adminhtml\\Team\\Edit\\Tab\\Content')->toHtml()]);
return parent::_beforeToHtml();
}
示例9: _beforeToHtml
protected function _beforeToHtml()
{
$this->addTab('related_posts_section', ['label' => __('Related Posts'), 'url' => $this->getUrl('blog/post/relatedPosts', ['_current' => true]), 'class' => 'ajax']);
$this->addTab('related_products_section', ['label' => __('Related Products'), 'url' => $this->getUrl('blog/post/relatedProducts', ['_current' => true]), 'class' => 'ajax']);
return parent::_beforeToHtml();
}
示例10: _beforeToHtml
/**
* @return $this
*/
protected function _beforeToHtml()
{
$this->addTab('form_section', array('label' => __('Rating Information'), 'title' => __('Rating Information'), 'content' => $this->getLayout()->createBlock('Magento\\Review\\Block\\Adminhtml\\Rating\\Edit\\Tab\\Form')->toHtml()));
return parent::_beforeToHtml();
}
示例11: _beforeToHtml
protected function _beforeToHtml()
{
$this->addTab('post_info', ['label' => __('General'), 'title' => __('General'), 'content' => $this->getLayout()->createBlock('ISM\\Blog\\Block\\Adminhtml\\Post\\Edit\\Tab\\Info')->toHtml(), 'active' => true]);
return parent::_beforeToHtml();
}
示例12: _beforeToHtml
/**
* {@inheritdoc}
*/
protected function _beforeToHtml()
{
\Magento\Framework\Profiler::start('customer/tabs');
$this->addTab('account', array('label' => __('Account Information'), 'content' => $this->getLayout()->createBlock('Magento\\Customer\\Block\\Adminhtml\\Edit\\Tab\\Account')->initForm()->toHtml(), 'active' => $this->_coreRegistry->registry(RegistryConstants::CURRENT_CUSTOMER_ID) ? false : true));
$this->addTab('addresses', array('label' => __('Addresses'), 'content' => $this->getLayout()->createBlock('Magento\\Customer\\Block\\Adminhtml\\Edit\\Tab\\Addresses')->initForm()->toHtml()));
// load: Orders, Shopping Cart, Wishlist, Product Reviews, Product Tags - with ajax
if ($this->_coreRegistry->registry(RegistryConstants::CURRENT_CUSTOMER_ID)) {
if ($this->_authorization->isAllowed('Magento_Sales::actions_view')) {
$this->addTab('orders', array('label' => __('Orders'), 'class' => 'ajax', 'url' => $this->getUrl('customer/*/orders', array('_current' => true))));
}
$this->addTab('cart', array('label' => __('Shopping Cart'), 'class' => 'ajax', 'url' => $this->getUrl('customer/*/carts', array('_current' => true))));
$this->addTab('wishlist', array('label' => __('Wishlist'), 'class' => 'ajax', 'url' => $this->getUrl('customer/*/wishlist', array('_current' => true))));
if ($this->_authorization->isAllowed('Magento_Newsletter::subscriber')) {
$this->addTab('newsletter', array('label' => __('Newsletter'), 'content' => $this->getLayout()->createBlock('Magento\\Customer\\Block\\Adminhtml\\Edit\\Tab\\Newsletter')->initForm()->toHtml()));
}
$reviewOutput = $this->isOutputEnabled('Magento_Review');
if ($this->_authorization->isAllowed('Magento_Review::reviews_all') && $reviewOutput) {
$this->addTab('reviews', array('label' => __('Product Reviews'), 'class' => 'ajax', 'url' => $this->getUrl('customer/*/productReviews', array('_current' => true))));
}
}
$this->_updateActiveTab();
\Magento\Framework\Profiler::stop('customer/tabs');
return parent::_beforeToHtml();
}