function FormController::__construct

Same name in this branch
  1. 11.x core/lib/Drupal/Core/Controller/FormController.php \Drupal\Core\Controller\FormController::__construct()
Same name in other branches
  1. 9 core/modules/system/tests/modules/condition_test/src/FormController.php \Drupal\condition_test\FormController::__construct()
  2. 9 core/lib/Drupal/Core/Controller/FormController.php \Drupal\Core\Controller\FormController::__construct()
  3. 8.9.x core/modules/system/tests/modules/condition_test/src/FormController.php \Drupal\condition_test\FormController::__construct()
  4. 8.9.x core/lib/Drupal/Core/Controller/FormController.php \Drupal\Core\Controller\FormController::__construct()
  5. 10 core/modules/system/tests/modules/condition_test/src/FormController.php \Drupal\condition_test\FormController::__construct()
  6. 10 core/lib/Drupal/Core/Controller/FormController.php \Drupal\Core\Controller\FormController::__construct()

Constructs a \Drupal\condition_test\FormController object.

File

core/modules/system/tests/modules/condition_test/src/FormController.php, line 44

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('entity_bundle:node');
    $this->conditionCurrentTheme = $manager->createInstance('current_theme');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.