You are here

public function Context::removeReaction in Context 8.4

Same name and namespace in other branches
  1. 8 src/Entity/Context.php \Drupal\context\Entity\Context::removeReaction()
  2. 8.0 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 This context object.

Overrides ContextInterface::removeReaction

File

src/Entity/Context.php, line 338

Class

Context
Defines the Context entity.

Namespace

Drupal\context\Entity

Code

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