You are here

public function ShareMessage::setRuntimeContext in Share Message 8

Sets an additional runtime context for tokenizing.

Parameters

array $context: The context that will be used for following token replacements when this Share Message is shown.

Overrides ShareMessageInterface::setRuntimeContext

File

src/Entity/ShareMessage.php, line 246

Class

ShareMessage
Entity class for the Share Message entity.

Namespace

Drupal\sharemessage\Entity

Code

public function setRuntimeContext(array $context) {
  $this->runtimeContext = $context;
}