public function MultiFormBuilder::__construct in Multiple forms 8
Constructs a new MultiFormBuilder.
Parameters
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.
\Drupal\Core\DependencyInjection\ClassResolverInterface $class_resolver: The class resolver.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
File
- src/
MultiFormBuilder.php, line 55 - Contains \Drupal\multiform\FormBuilder.
Class
Namespace
Drupal\multiformCode
public function __construct(FormBuilderInterface $form_builder, ClassResolverInterface $class_resolver, RequestStack $request_stack) {
$this->formBuilder = $form_builder;
$this->classResolver = $class_resolver;
$this->request = $request_stack
->getCurrentRequest();
}