You are here

public function DomainSourceToken::getTokenInfo in Domain Access 8

Implements hook_token_info().

File

domain_source/src/DomainSourceToken.php, line 39

Class

DomainSourceToken
Token handler for Domain Source.

Namespace

Drupal\domain_source

Code

public function getTokenInfo() {

  // Domain Source tokens.
  $info['tokens']['node']['canonical-source-domain-url'] = [
    'name' => $this
      ->t('Canonical Source Domain URL'),
    'description' => $this
      ->t("The canonical URL from the source domain for this node."),
    'type' => 'node',
  ];
  return $info;
}