class MultiformExampleController in Multiple forms 8
Controller routines for contact routes.
Hierarchy
- class \Drupal\multiform_example\Controller\MultiformExampleController implements ContainerInjectionInterface
Expanded class hierarchy of MultiformExampleController
File
- multiform_example/
src/ Controller/ MultiformExampleController.php, line 16 - Contains \Drupal\multiform_example\Controller\MainController.
Namespace
Drupal\multiform_example\ControllerView source
class MultiformExampleController implements ContainerInjectionInterface {
protected $multiFormBuilder;
public function __construct(MultiFormBuilder $formBuilder) {
$this->multiFormBuilder = $formBuilder;
}
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static($container
->get('multiform.form_builder'));
}
/**
* {@inheritdoc}
*/
public function content() {
return $this->multiFormBuilder
->getForm(array(
'Drupal\\multiform_example\\Form\\Example1',
), array(
'Drupal\\multiform_example\\Form\\Example2',
));
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MultiformExampleController:: |
protected | property | ||
MultiformExampleController:: |
public | function | ||
MultiformExampleController:: |
public static | function |
Instantiates a new instance of this class. Overrides ContainerInjectionInterface:: |
|
MultiformExampleController:: |
public | function |