You are here

public function TokenTrait::setTokenValue in Courier 2.x

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

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

File

src/TokenTrait.php, line 29

Class

TokenTrait
Provides an implementation of TokenInterface.

Namespace

Drupal\courier

Code

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