public function ContextReactionPluginBase::getId in Context 8.4
Same name and namespace in other branches
- 8 src/ContextReactionPluginBase.php \Drupal\context\ContextReactionPluginBase::getId()
- 8.0 src/ContextReactionPluginBase.php \Drupal\context\ContextReactionPluginBase::getId()
Get the unique ID of this context reaction.
Return value
string|null The Reaction id or null if reaction was not found.
Overrides ContextReactionInterface::getId
File
- src/
ContextReactionPluginBase.php, line 24
Class
- ContextReactionPluginBase
- Provides a plugin base for Context Reactions.
Namespace
Drupal\contextCode
public function getId() {
if (isset($this
->getConfiguration()['id'])) {
return $this
->getConfiguration()['id'];
}
return NULL;
}