You are here

public function FlexiformController::__construct in Flexiform 8

Construct a new flexiform controller.

Parameters

\Drupal\flexiform\Utility\Token $token: The token service.

\Drupal\Core\Form\FormBuilderInterface $form_builder: The entity form builder.

\Drupal\flexiform\FlexiformManager $flexiform_manager: The flexiform manager.

File

src/Controller/FlexiformController.php, line 52

Class

FlexiformController
Controller for flexiform pages.

Namespace

Drupal\flexiform\Controller

Code

public function __construct(Token $token, FormBuilderInterface $form_builder, FlexiformManager $flexiform_manager) {
  $this->token = $token;
  $this->formBuilder = $form_builder;
  $this->flexiformManager = $flexiform_manager;
}