function TokenTrait::setTokenValue in Courier 8
Same name and namespace in other branches
- 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\courierCode
function setTokenValue($token, $value) {
$this->tokens[$token] = $value;
return $this;
}