Drupal\helper\LinkAutocompleteFormTrait
Provides helpers for adding a content autocomplete link element to a form.
Methods
Name | Description |
---|---|
getLinkAutocompleteElement | Generates a autocomplete link element for a form. |
validateLinkAutocompleteElement | Validation callback for URL elements. |
LinkAutocompleteFormTrait::getLinkAutocompleteElement
Description
public static getLinkAutocompleteElement (string $default_value)
Generates a autocomplete link element for a form.
Parameters
(string) $default_value
: The default value for the field.
Return Values
array
The autocomplete link form element.
LinkAutocompleteFormTrait::validateLinkAutocompleteElement
Description
public static validateLinkAutocompleteElement (void)
Validation callback for URL elements.
Parameters
This function has no parameters.
Return Values
void