public function Context::getReaction in Context 8.4
Same name and namespace in other branches
- 8 src/Entity/Context.php \Drupal\context\Entity\Context::getReaction()
- 8.0 src/Entity/Context.php \Drupal\context\Entity\Context::getReaction()
Get a reaction with the specified ID.
Parameters
string $reaction_id: The ID of the reaction to get.
Return value
ContextReactionInterface A specific reaction.
Overrides ContextInterface::getReaction
File
- src/
Entity/ Context.php, line 317
Class
- Context
- Defines the Context entity.
Namespace
Drupal\context\EntityCode
public function getReaction($reaction_id) {
return $this
->getReactions()
->get($reaction_id);
}