| Current Path : /home/rtorresani/www/vendor/magento/module-theme/Block/Adminhtml/System/Design/Theme/Edit/ |
| Current File : //home/rtorresani/www/vendor/magento/module-theme/Block/Adminhtml/System/Design/Theme/Edit/Form.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Theme\Block\Adminhtml\System\Design\Theme\Edit;
/**
* Theme Edit Form
*
* @SuppressWarnings(PHPMD.DepthOfInheritance)
*/
class Form extends \Magento\Backend\Block\Widget\Form\Generic
{
/**
* Initialize theme form
*
* @return \Magento\Theme\Block\Adminhtml\System\Design\Theme\Edit\Form|\Magento\Backend\Block\Widget\Form
*/
protected function _prepareForm()
{
/** @var \Magento\Framework\Data\Form $form */
$form = $this->_formFactory->create(
[
'data' => [
'id' => 'edit_form',
'action' => $this->getUrl('adminhtml/*/save'),
'enctype' => 'multipart/form-data',
'method' => 'post',
],
]
);
$form->setUseContainer(true);
$this->setForm($form);
return parent::_prepareForm();
}
}