Beispiel #1
0
 /**
  * @param \Magento\Framework\Data\Form\Element\Factory $factoryElement
  * @param \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection
  * @param \Magento\Framework\Escaper $escaper
  * @param \Magento\Framework\Data\Form\Element\TextFactory $factoryText
  * @param array $data
  */
 public function __construct(\Magento\Framework\Data\Form\Element\Factory $factoryElement, \Magento\Framework\Data\Form\Element\CollectionFactory $factoryCollection, \Magento\Framework\Escaper $escaper, \Magento\Framework\Data\Form\Element\TextFactory $factoryText, array $data = array())
 {
     $this->_factoryText = $factoryText;
     $this->_qty = isset($data['qty']) ? $data['qty'] : $this->_createQtyElement();
     unset($data['qty']);
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->setName($data['name']);
 }
Beispiel #2
0
 /**
  * @param Factory $factoryElement
  * @param CollectionFactory $factoryCollection
  * @param Escaper $escaper
  * @param \Magento\Msrp\Model\Config $config
  * @param array $data
  */
 public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, \Magento\Msrp\Model\Config $config, $data = [])
 {
     parent::__construct($factoryElement, $factoryCollection, $escaper, $data);
     $this->config = $config;
 }