public function SelectionBroken::validateAutocompleteInput in Entity reference 8
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 SelectionInterface::validateAutocompleteInput
See also
_entityreference_autocomplete_validate()
File
- lib/
Drupal/ entityreference/ Plugin/ Type/ Selection/ SelectionBroken.php, line 48 - Definition of Drupal\entityreference\Plugin\entityreference\selection\SelectionBroken.
Class
- SelectionBroken
- A null implementation of EntityReference_SelectionHandler.
Namespace
Drupal\entityreference\Plugin\Type\SelectionCode
public function validateAutocompleteInput($input, &$element, &$form_state, $form) {
}