public function Context::removeReaction in Context 8.4
Same name and namespace in other branches
- 8 src/Entity/Context.php \Drupal\context\Entity\Context::removeReaction()
- 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\EntityCode
public function removeReaction($reaction_id) {
$this
->getReactions()
->removeInstanceId($reaction_id);
return $this;
}