当前位置: 首页>>代码示例>>PHP>>正文


PHP Tabs::_beforeToHtml方法代码示例

本文整理汇总了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();
 }
开发者ID:aiesh,项目名称:magento2,代码行数:10,代码来源:Tabs.php

示例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();
 }
开发者ID:mirasvit,项目名称:module-blog,代码行数:10,代码来源:Tabs.php

示例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();
 }
开发者ID:Atlis,项目名称:docker-magento2,代码行数:40,代码来源:Tabs.php

示例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();
 }
开发者ID:Doability,项目名称:magento2dev,代码行数:17,代码来源:Tabs.php

示例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();
 }
开发者ID:pradeep-wagento,项目名称:magento2,代码行数:9,代码来源:Tabs.php

示例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();
 }
开发者ID:DRAJI,项目名称:Rapidmage,代码行数:8,代码来源:Tabs.php

示例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();
 }
开发者ID:rushvisilk,项目名称:mage2-helloworld,代码行数:9,代码来源:Tabs.php

示例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();
 }
开发者ID:vishalktpl,项目名称:CHAT,代码行数:6,代码来源:Tabs.php

示例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();
 }
开发者ID:samitrimal,项目名称:Blog-Extension-for-Magento-2,代码行数:6,代码来源:Tabs.php

示例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();
 }
开发者ID:aiesh,项目名称:magento2,代码行数:8,代码来源:Tabs.php

示例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();
 }
开发者ID:swnsma,项目名称:practice,代码行数:5,代码来源:Tabs.php

示例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();
 }
开发者ID:aiesh,项目名称:magento2,代码行数:27,代码来源:Tabs.php


注:本文中的Magento\Backend\Block\Widget\Tabs::_beforeToHtml方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。