function CategoryAutocompleteController::__construct

Same name and namespace in other branches
  1. 11.x core/modules/block/src/Controller/CategoryAutocompleteController.php \Drupal\block\Controller\CategoryAutocompleteController::__construct()
  2. 10 core/modules/block/src/Controller/CategoryAutocompleteController.php \Drupal\block\Controller\CategoryAutocompleteController::__construct()
  3. 9 core/modules/block/src/Controller/CategoryAutocompleteController.php \Drupal\block\Controller\CategoryAutocompleteController::__construct()
  4. 8.9.x core/modules/block/src/Controller/CategoryAutocompleteController.php \Drupal\block\Controller\CategoryAutocompleteController::__construct()

Constructs a new CategoryAutocompleteController.

Parameters

\Drupal\Core\Block\BlockManagerInterface $blockManager: The block manager.

File

core/modules/block/src/Controller/CategoryAutocompleteController.php, line 24

Class

CategoryAutocompleteController
Returns autocomplete responses for block categories.

Namespace

Drupal\block\Controller

Code

public function __construct(protected BlockManagerInterface $blockManager) {
}

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