You are here

public function Token::setDynamic in Hook Event Dispatcher 8

Set whether or not the token is dynamic.

Parameters

bool $dynamic: TRUE if the token is dynamic.

Return value

\Drupal\hook_event_dispatcher\Value\Token New instance with the given dynamic.

File

src/Value/Token.php, line 114

Class

Token
Token ValueObject.

Namespace

Drupal\hook_event_dispatcher\Value

Code

public function setDynamic($dynamic) {
  $clone = clone $this;
  $clone->dynamic = $dynamic;
  return $clone;
}