public function Context::getReactions in Context 8.4
Same name and namespace in other branches
- 8 src/Entity/Context.php \Drupal\context\Entity\Context::getReactions()
- 8.0 src/Entity/Context.php \Drupal\context\Entity\Context::getReactions()
Get a list of all the reactions.
Return value
ContextReactionInterface[]|ContextReactionPluginCollection A reaction list.
Overrides ContextInterface::getReactions
2 calls to Context::getReactions()
- Context::calculateDependencies in src/
Entity/ Context.php - Calculates dependencies and stores them in the dependency property.
- Context::getPluginCollections in src/
Entity/ Context.php - Gets the plugin collections used by this entity.
File
- src/
Entity/ Context.php, line 305
Class
- Context
- Defines the Context entity.
Namespace
Drupal\context\EntityCode
public function getReactions() {
if (!$this->reactionsCollection) {
$reactionManager = Drupal::service('plugin.manager.context_reaction');
$this->reactionsCollection = new ContextReactionPluginCollection($reactionManager, $this->reactions);
}
return $this->reactionsCollection;
}