public function AutosaveFormBuilder::__construct in Autosave Form 8
Constructs a new FormBuilder.
Parameters
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder service.
\Drupal\Core\Form\FormValidatorInterface $form_validator: The form validator.
\Drupal\Core\Form\FormSubmitterInterface $form_submitter: The form submission processor.
\Drupal\Core\Form\FormCacheInterface $form_cache: The form cache.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver: The class resolver.
\Drupal\Core\Render\ElementInfoManagerInterface $element_info: The element info manager.
\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.
\Drupal\Core\Access\CsrfTokenGenerator $csrf_token: The CSRF token generator.
\Drupal\autosave_form\Storage\AutosaveEntityFormStorageInterface $autosave_entity_form_storage: The autosave form storage service.
Overrides FormBuilder::__construct
File
- src/
Form/ AutosaveFormBuilder.php, line 90
Class
- AutosaveFormBuilder
- Provides form building and processing with AutosaveForm enabled.
Namespace
Drupal\autosave_form\FormCode
public function __construct(FormBuilderInterface $form_builder, FormValidatorInterface $form_validator, FormSubmitterInterface $form_submitter, FormCacheInterface $form_cache, ModuleHandlerInterface $module_handler, EventDispatcherInterface $event_dispatcher, RequestStack $request_stack, ClassResolverInterface $class_resolver, ElementInfoManagerInterface $element_info, ThemeManagerInterface $theme_manager, CsrfTokenGenerator $csrf_token = NULL, AutosaveEntityFormStorageInterface $autosave_entity_form_storage) {
parent::__construct($form_validator, $form_submitter, $form_cache, $module_handler, $event_dispatcher, $request_stack, $class_resolver, $element_info, $theme_manager, $csrf_token);
$this->formBuilder = $form_builder;
$this->autosaveEntityFormStorage = $autosave_entity_form_storage;
}