You are here

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

MultiFormBuilder

Namespace

Drupal\multiform

Code

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();
}