You are here

public function FormController::__construct in Zircon Profile 8

Same name in this branch
  1. 8 core/lib/Drupal/Core/Controller/FormController.php \Drupal\Core\Controller\FormController::__construct()
  2. 8 core/modules/system/tests/modules/condition_test/src/FormController.php \Drupal\condition_test\FormController::__construct()
Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/condition_test/src/FormController.php \Drupal\condition_test\FormController::__construct()

Constructs a \Drupal\condition_test\FormController object.

File

core/modules/system/tests/modules/condition_test/src/FormController.php, line 37
Contains \Drupal\condition_test\FormController.

Class

FormController
Routing controller class for condition_test testing of condition forms.

Namespace

Drupal\condition_test

Code

public function __construct() {
  $manager = new ConditionManager(\Drupal::service('container.namespaces'), \Drupal::cache('discovery'), \Drupal::moduleHandler());
  $this->condition = $manager
    ->createInstance('node_type');
}