/**
  * 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;
 }
Exemple #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 ($parameter->getKey() != 'template') {
         return parent::_addField($parameter);
     }
     return false;
 }