You are here

public function EntityReferenceTreeController::__construct in Entity Reference Tree Widget 8

Same name and namespace in other branches
  1. 2.x src/Controller/EntityReferenceTreeController.php \Drupal\entity_reference_tree\Controller\EntityReferenceTreeController::__construct()

The EntityReferenceTreeController constructor.

Parameters

\Drupal\Core\Form\FormBuilder $formBuilder: The form builder.

File

src/Controller/EntityReferenceTreeController.php, line 40

Class

EntityReferenceTreeController
EntityReferenceTreeController class.

Namespace

Drupal\entity_reference_tree\Controller

Code

public function __construct(FormBuilder $formBuilder, CsrfTokenGenerator $csrfToken) {
  $this->formBuilder = $formBuilder;
  $this->csrfToken = $csrfToken;
}