You are here

public function Context::removeReaction in Context 8.0

Same name and namespace in other branches
  1. 8.4 src/Entity/Context.php \Drupal\context\Entity\Context::removeReaction()
  2. 8 src/Entity/Context.php \Drupal\context\Entity\Context::removeReaction()

Remove the specified reaction.

Parameters

string $reaction_id: The id of the reaction to remove.

Return value

$this

Overrides ContextInterface::removeReaction

File

src/Entity/Context.php, line 333

Class

Context
Defines the Context entity.

Namespace

Drupal\context\Entity

Code

public function removeReaction($reaction_id) {
  $this
    ->getReactions()
    ->removeInstanceId($reaction_id);
  return $this;
}