Function Hook_admin_stats_views->domain_list_match
Definitions
sources/hooks/modules/admin_stats/views.php
- See if a domain matches a list of regexps.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $list | array | No | No | required parameter | N/A | N/A | List of regexps |
| $domain | string | No | No | required parameter | N/A | N/A | Domain name |
Returns
- Whether it matches
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* See if a domain matches a list of regexps.
*
* @param array $list List of regexps
* @param string $domain Domain name
* @return boolean Whether it matches
*/
protected function domain_list_match(array $list, string $domain) : bool
* See if a domain matches a list of regexps.
*
* @param array $list List of regexps
* @param string $domain Domain name
* @return boolean Whether it matches
*/
protected function domain_list_match(array $list, string $domain) : bool

