EntityAutocompleteMatcher::$selectionManager

The entity reference selection handler plugin manager. Type: \Drupal\Core\Entity\EntityReferenceSelection\SelectionPluginManagerInterface File core/lib/Drupal/Core/Entity/EntityAutocompleteMatcher.php, line 19 Class EntityAutocompleteMatcher Matcher class to get autocompletion results for entity reference. Namespace Drupal\Core\Entity Code protected $selectionManager;

EntityAutocompleteMatcher

Matcher class to get autocompletion results for entity reference. Hierarchy class \Drupal\Core\Entity\EntityAutocompleteMatcher File core/lib/Drupal/Core/Entity/EntityAutocompleteMatcher.php, line 12 Namespace Drupal\Core\Entity Members Name Modifiers Type Description EntityAutocompleteMatcher::$selectionManager protected property The entity reference selection handler plugin manager. EntityAutocompleteMatcher::getMatches public function Gets matched labels based

EntityAutocompleteController::__construct

public EntityAutocompleteController::__construct(EntityAutocompleteMatcher $matcher, KeyValueStoreInterface $key_value) Constructs a EntityAutocompleteController object. Parameters \Drupal\Core\Entity\EntityAutocompleteMatcher $matcher: The autocomplete matcher for entity references. \Drupal\Core\KeyValueStore\KeyValueStoreInterface $key_value: The key value factory. File core/modules/system/src/Controller/EntityAutocompleteController.php, line 44 Class EntityAutocompleteController Define

EntityAutocompleteController::handleAutocomplete

public EntityAutocompleteController::handleAutocomplete(Request $request, $target_type, $selection_handler, $selection_settings_key) Autocomplete the label of an entity. Parameters \Symfony\Component\HttpFoundation\Request $request: The request object that contains the typed tags. string $target_type: The ID of the target entity type. string $selection_handler: The plugin ID of the entity reference selection handler. string $selection_settings_key: The hashed key of the key/value entry that ho

EntityAutocompleteController::create

public static EntityAutocompleteController::create(ContainerInterface $container) Instantiates a new instance of this class. This is a factory method that returns a new instance of this class. The factory should pass any needed dependencies into the constructor of this class, but not the container itself. Every call to this method must return a new instance of this class; that is, it may not implement a singleton. Parameters \Symfony\Component\DependencyInjection\ContainerInterface $container:

EntityAutocompleteController::$matcher

The autocomplete matcher for entity references. Type: \Drupal\Core\Entity\EntityAutocompleteMatcher File core/modules/system/src/Controller/EntityAutocompleteController.php, line 27 Class EntityAutocompleteController Defines a route controller for entity autocomplete form elements. Namespace Drupal\system\Controller Code protected $matcher;

EntityAutocompleteController::$keyValue

The key value store. Type: \Drupal\Core\KeyValueStore\KeyValueStoreInterface Overrides ControllerBase::$keyValue File core/modules/system/src/Controller/EntityAutocompleteController.php, line 34 Class EntityAutocompleteController Defines a route controller for entity autocomplete form elements. Namespace Drupal\system\Controller Code protected $keyValue;

EntityAutocompleteController

Defines a route controller for entity autocomplete form elements. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\system\Controller\EntityAutocompleteController File core/modules/system/src/Controller/EntityAutocompleteController.php, line 20 Namespace Drupal\system\Controller Members Name Modifiers Type Desc

EntityAutocomplete::valueCallback

public static EntityAutocomplete::valueCallback(&$element, $input, FormStateInterface $form_state) Determines how user input is mapped to an element's #value property. Parameters array $element: An associative array containing the properties of the element. mixed $input: The incoming input to populate the form element. If this is FALSE, the element's default value should be returned. \Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Return value mixed The va

EntityAutocomplete::validateEntityAutocomplete

public static EntityAutocomplete::validateEntityAutocomplete(array &$element, FormStateInterface $form_state, array &$complete_form) Form element validation handler for entity_autocomplete elements. File core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php, line 151 Class EntityAutocomplete Provides an entity autocomplete form element. Namespace Drupal\Core\Entity\Element Code public static function validateEntityAutocomplete(array &$element, FormStateInterface $form_