1 EntityReferenceSelectionHandler.inc | public EntityReferenceSelectionHandlerInterface::validateAutocompleteInput($input, &$element, &$form_state, $form) |
Validate Input from autocomplete widget that has no Id.
Parameters
$input: Single string from autocomplete widget.
$element: The form element to set a form error.
Return value
Value of a matching entity id, or NULL if none.:
See also
_entityreference_autocomplete_validate()
File
- core/
modules/ entityreference/ plugins/ selection/ EntityReferenceSelectionHandler.inc, line 55 - Abstraction of the selection logic of an entity reference field.
Class
- EntityReferenceSelectionHandlerInterface
- @file Abstraction of the selection logic of an entity reference field.
Code
public function validateAutocompleteInput($input, &$element, &$form_state, $form);