Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Form.php
Go to the documentation of this file.
1 <?php
7 
13 class Form extends \Magento\Backend\Block\Widget\Form\Generic
14 {
18  protected function _prepareForm()
19  {
21  $form = $this->_formFactory->create(
22  ['data' => ['id' => 'edit_form', 'action' => $this->getData('action'), 'method' => 'post']]
23  );
24  $form->setUseContainer(true);
25  $this->setForm($form);
26  return parent::_prepareForm();
27  }
28 }
getData($key='', $index=null)
Definition: DataObject.php:119
setForm(\Magento\Framework\Data\Form $form)
Definition: Form.php:112