public function ContextInterface::hasReaction in Context 8.4
Same name and namespace in other branches
- 8 src/ContextInterface.php \Drupal\context\ContextInterface::hasReaction()
- 8.0 src/ContextInterface.php \Drupal\context\ContextInterface::hasReaction()
Check to see if the context has the specified reaction.
Parameters
string $reaction_id: The ID of the reaction to check for.
Return value
bool TRUE if the context has the specified reaction, FALSE if not.
1 method overrides ContextInterface::hasReaction()
- Context::hasReaction in src/
Entity/ Context.php - Check to see if the context has the specified reaction.
File
- src/
ContextInterface.php, line 242
Class
- ContextInterface
- Provides an interface for Context.
Namespace
Drupal\contextCode
public function hasReaction($reaction_id);