function CategoryAutocompleteController::create
Same name in other branches
- 9 core/modules/block/src/Controller/CategoryAutocompleteController.php \Drupal\block\Controller\CategoryAutocompleteController::create()
- 8.9.x core/modules/block/src/Controller/CategoryAutocompleteController.php \Drupal\block\Controller\CategoryAutocompleteController::create()
- 10 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\ControllerCode
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.