예제 #1
0
 /**
  * Add field to Options form based on option configuration
  *
  * @param \Magento\Framework\Object $parameter
  * @return \Magento\Framework\Data\Form\Element\AbstractElement
  */
 protected function _addField($parameter)
 {
     if ($parameter->getKey() != 'template') {
         return parent::_addField($parameter);
     }
     return false;
 }
예제 #2
0
 /**
  * Add field to Options form based on option configuration
  *
  * @param \Magento\Framework\Object $parameter
  * @return \Magento\Framework\Data\Form\Element\AbstractElement
  */
 protected function _addField($parameter)
 {
     if (!in_array($parameter->getKey(), $this->hiddenParameters)) {
         return parent::_addField($parameter);
     }
     return false;
 }
예제 #3
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Framework\Data\FormFactory $formFactory
  * @param \Magento\Framework\Option\ArrayPool $sourceModelPool
  * @param \Magento\Widget\Model\Widget $widget
  * @param \Swissup\Easytabs\Model\TabsFactory $tabsOptionsFactory
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, \Magento\Framework\Registry $registry, \Magento\Framework\Data\FormFactory $formFactory, \Magento\Framework\Option\ArrayPool $sourceModelPool, \Magento\Widget\Model\Widget $widget, \Swissup\Easytabs\Model\TabsFactory $tabsOptionsFactory, array $data = [])
 {
     $this->tabsOptionsFactory = $tabsOptionsFactory;
     parent::__construct($context, $registry, $formFactory, $sourceModelPool, $widget, $data);
 }