1 EntityReferenceSelectionHandler.inc | public EntityReferenceSelectionHandlerBroken::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.:
Overrides EntityReferenceSelectionHandlerInterface::validateAutocompleteInput
See also
_entityreference_autocomplete_validate()
File
- core/
modules/ entityreference/ plugins/ selection/ EntityReferenceSelectionHandler.inc, line 105 - Abstraction of the selection logic of an entity reference field.
Class
- EntityReferenceSelectionHandlerBroken
- A null implementation of EntityReferenceSelectionHandler.
Code
public function validateAutocompleteInput($input, &$element, &$form_state, $form) {
return NULL;
}