Ejemplo n.º 1
0
 /**
  * @param Factory $factoryElement
  * @param CollectionFactory $factoryCollection
  * @param Escaper $escaper
  * @param array $data
  */
 public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, Escaper $escaper, $data = array())
 {
     $this->_escaper = $escaper;
     parent::__construct($factoryElement, $factoryCollection, $data);
     $this->_renderer = \Magento\Framework\Data\Form::getElementRenderer();
 }
Ejemplo n.º 2
0
 /**
  * @param Factory $factoryElement
  * @param ElementCollectionFactory $factoryCollection
  * @param FormKey $formKey
  * @param array $data
  */
 public function __construct(Factory $factoryElement, ElementCollectionFactory $factoryCollection, FormKey $formKey, $data = [])
 {
     parent::__construct($factoryElement, $factoryCollection, $data);
     $this->_allElements = $this->_factoryCollection->create(['container' => $this]);
     $this->formKey = $formKey;
 }