You are here

public function TokenInterface::setTokenValue in Courier 2.x

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

Sets a value to a token type.

Parameters

string $token: A token type.

mixed $value: The token value.

Return value

self Return this instance for chaining.

File

src/TokenInterface.php, line 31

Class

TokenInterface
Interface for TokenTrait.

Namespace

Drupal\courier

Code

public function setTokenValue($token, $value);