Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
Métodos Frequentes
/** * Populate form element with field data * * @param \Magento\Framework\Data\Form\Element\AbstractElement $formField * @return void */ public function populateInput($formField) { $originalData = []; foreach ($this->_data as $key => $value) { if (!is_array($value)) { $originalData[$key] = $value; } } $formField->setOriginalData($originalData); }