Function __global->_get_autocomplete_attribute_value
Definitions
sources/form_templates.php
- Gets the autocomplete attribute value for a field.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $name | ID_TEXT | No | No | required parameter | N/A | N/A | The input field [name] attribute value |
| $provided_autocomplete | ~?mixed | No | No | required parameter | N/A | N/A | The provided autocomplete value (false: explicitly disable autocomplete) (null: try to find a value for the provided $name, otherwise return null) |
Returns
- (null: don't use an autocomplete attribute)
- Type: ?string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Gets the autocomplete attribute value for a field.
*
* @param ID_TEXT $name The input field [name] attribute value
* @param ~?mixed $provided_autocomplete The provided autocomplete value (false: explicitly disable autocomplete) (null: try to find a value for the provided $name, otherwise return null)
* @return ?string (null: don't use an autocomplete attribute)
*/
function _get_autocomplete_attribute_value(string $name, $provided_autocomplete) : ?string
* Gets the autocomplete attribute value for a field.
*
* @param ID_TEXT $name The input field [name] attribute value
* @param ~?mixed $provided_autocomplete The provided autocomplete value (false: explicitly disable autocomplete) (null: try to find a value for the provided $name, otherwise return null)
* @return ?string (null: don't use an autocomplete attribute)
*/
function _get_autocomplete_attribute_value(string $name, $provided_autocomplete) : ?string

