Form.php 720 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\User\Block\User\Edit;
  7. /**
  8. * Adminhtml permissions user edit form
  9. *
  10. * @SuppressWarnings(PHPMD.DepthOfInheritance)
  11. */
  12. class Form extends \Magento\Backend\Block\Widget\Form\Generic
  13. {
  14. /**
  15. * @return $this
  16. */
  17. protected function _prepareForm()
  18. {
  19. /** @var \Magento\Framework\Data\Form $form */
  20. $form = $this->_formFactory->create(
  21. ['data' => ['id' => 'edit_form', 'action' => $this->getData('action'), 'method' => 'post']]
  22. );
  23. $form->setUseContainer(true);
  24. $this->setForm($form);
  25. return parent::_prepareForm();
  26. }
  27. }