You are here

public function CourierContext::getTokens in Courier 2.x

Same name and namespace in other branches
  1. 8 src/Entity/CourierContext.php \Drupal\courier\Entity\CourierContext::getTokens()

Get token names.

Return value

array An array of tokens names.

Overrides CourierContextInterface::getTokens

File

src/Entity/CourierContext.php, line 52

Class

CourierContext
Defines a courier_context configuration entity.

Namespace

Drupal\courier\Entity

Code

public function getTokens() {
  return array_merge($this->tokens, [
    'identity',
  ]);
}