function EntityAutocompleteController::create
Same name in other branches
- 9 core/modules/system/src/Controller/EntityAutocompleteController.php \Drupal\system\Controller\EntityAutocompleteController::create()
- 10 core/modules/system/src/Controller/EntityAutocompleteController.php \Drupal\system\Controller\EntityAutocompleteController::create()
- 11.x core/modules/system/src/Controller/EntityAutocompleteController.php \Drupal\system\Controller\EntityAutocompleteController::create()
Overrides ControllerBase::create
2 calls to EntityAutocompleteController::create()
- EntityAutocompleteTest::getAutocompleteResult in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityAutocompleteTest.php - Returns the result of an Entity reference autocomplete request.
- EntityAutocompleteTest::testSelectionSettingsHandling in core/
tests/ Drupal/ KernelTests/ Core/ Entity/ EntityAutocompleteTest.php - Tests that missing or invalid selection setting key are handled correctly.
File
-
core/
modules/ system/ src/ Controller/ EntityAutocompleteController.php, line 51
Class
- EntityAutocompleteController
- Defines a route controller for entity autocomplete form elements.
Namespace
Drupal\system\ControllerCode
public static function create(ContainerInterface $container) {
return new static($container->get('entity.autocomplete_matcher'), $container->get('keyvalue')
->get('entity_autocomplete'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.