Form.php 737 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Smartwave\Dailydeals\Block\Adminhtml\Dailydeal\Edit;
  3. class Form extends \Magento\Backend\Block\Widget\Form\Generic
  4. {
  5. /**
  6. * Prepare form
  7. *
  8. * @return $this
  9. */
  10. protected function _prepareForm()
  11. {
  12. /** @var \Magento\Framework\Data\Form $form */
  13. $form = $this->_formFactory->create(
  14. [
  15. 'data' => [
  16. 'id' => 'edit_form',
  17. 'action' => $this->getData('action'),
  18. 'method' => 'post',
  19. 'enctype' => 'multipart/form-data'
  20. ]
  21. ]
  22. );
  23. $form->setUseContainer(true);
  24. $this->setForm($form);
  25. return parent::_prepareForm();
  26. }
  27. }