public function Context::removeReaction in Context 8
Same name and namespace in other branches
- 8.4 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
Overrides ContextInterface::removeReaction
File
- src/
Entity/ Context.php, line 335
Class
- Context
- Defines the Context entity.
Namespace
Drupal\context\EntityCode
public function removeReaction($reaction_id) {
$this
->getReactions()
->removeInstanceId($reaction_id);
return $this;
}