Function __global->_check_link_accessibility
Definitions
sources/webstandards2.php
- Checks link accessibility.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $tag | string | No | No | required parameter | N/A | N/A | The name of the tag to check |
| $attributes | array | No | No | required parameter | N/A | N/A | A map of attributes (name=>value) the tag has |
| $self_close | boolean | No | No | required parameter | N/A | N/A | Whether this is a self-closing tag |
| $close | boolean | No | No | required parameter | N/A | N/A | Whether this is a closing tag |
Returns
- Array of errors (null: none)
- Type: ?array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Checks link accessibility.
*
* @param string $tag The name of the tag to check
* @param array $attributes A map of attributes (name=>value) the tag has
* @param boolean $self_close Whether this is a self-closing tag
* @param boolean $close Whether this is a closing tag
* @return ?array Array of errors (null: none)
*/
function _check_link_accessibility(string $tag, array $attributes, bool $self_close, bool $close) : ?array
* Checks link accessibility.
*
* @param string $tag The name of the tag to check
* @param array $attributes A map of attributes (name=>value) the tag has
* @param boolean $self_close Whether this is a self-closing tag
* @param boolean $close Whether this is a closing tag
* @return ?array Array of errors (null: none)
*/
function _check_link_accessibility(string $tag, array $attributes, bool $self_close, bool $close) : ?array

