You are here

function TokenTrait::setTokenValue in Courier 8

Same name and namespace in other branches
  1. 2.x src/TokenTrait.php \Drupal\courier\TokenTrait::setTokenValue()

Implements \Drupal\courier\TokenInterface::setTokenValue().

File

src/TokenTrait.php, line 34
Contains \Drupal\courier\TokenTrait.

Class

TokenTrait
Provides an implementation of TokenInterface.

Namespace

Drupal\courier

Code

function setTokenValue($token, $value) {
  $this->tokens[$token] = $value;
  return $this;
}