function FormWizardBase::__construct
Same name in other branches
- 8.x-3.x src/Wizard/FormWizardBase.php \Drupal\ctools\Wizard\FormWizardBase::__construct()
Parameters
\Drupal\Core\TempStore\SharedTempStoreFactory $tempstore: Tempstore Factory for keeping track of values in each step of the wizard.
\Drupal\Core\Form\FormBuilderInterface $builder: The Form Builder.
\Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver: The class resolver.
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.
$tempstore_id: The shared temp store factory collection name.
null $machine_name: The SharedTempStore key for our current wizard values.
null $step: >>>>>>> parent of f243a856 (Issue #2992362 by thalles, Daniel Korte, sagannotcarl, baikho, osman, japerry, stevekeiretsu: Wizards should be using PrivateTempStore not SharedTempStore, otherwise all users end up sharing the same cached form values) The current active step of the wizard.
1 method overrides FormWizardBase::__construct()
- EntityFormWizardBase::__construct in src/
Wizard/ EntityFormWizardBase.php
File
-
src/
Wizard/ FormWizardBase.php, line 100
Class
- FormWizardBase
- The base class for all form wizard.
Namespace
Drupal\ctools\WizardCode
public function __construct(SharedTempStoreFactory $tempstore, FormBuilderInterface $builder, ClassResolverInterface $class_resolver, EventDispatcherInterface $event_dispatcher, RouteMatchInterface $route_match, RendererInterface $renderer, $tempstore_id, $machine_name = NULL, $step = NULL) {
$this->tempstore = $tempstore;
$this->builder = $builder;
$this->classResolver = $class_resolver;
$this->dispatcher = $event_dispatcher;
$this->routeMatch = $route_match;
$this->renderer = $renderer;
$this->tempstore_id = $tempstore_id;
$this->machine_name = $machine_name;
$this->step = $step;
}