public function DomainToken::getCallbacks in Domain Access 8
Maps tokens to their entity callbacks.
We assume that the token will call an instance of DomainInterface.
Return value
array An array of callbacks keyed by the token string.
1 call to DomainToken::getCallbacks()
- DomainToken::getTokens in domain/
src/ DomainToken.php - Implements hook_tokens().
File
- domain/
src/ DomainToken.php, line 171
Class
- DomainToken
- Token handler for Domain.
Namespace
Drupal\domainCode
public function getCallbacks() {
return [
'id' => 'getDomainId',
'machine-name' => 'id',
'path' => 'getPath',
'name' => 'label',
'hostname' => 'getHostname',
'scheme' => 'getScheme',
'status' => 'status',
'weight' => 'getWeight',
'is_default' => 'isDefault',
'url' => 'getUrl',
];
}