function CategoryAutocompleteController::create

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

Overrides ContainerInjectionInterface::create

File

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

Class

CategoryAutocompleteController
Returns autocomplete responses for block categories.

Namespace

Drupal\block\Controller

Code

public static function create(ContainerInterface $container) {
    return new static($container->get('plugin.manager.block'));
}

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