public function ContextReactionPluginBase::getId in Context 8
Same name and namespace in other branches
- 8.4 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
Overrides ContextReactionInterface::getId
File
- src/
ContextReactionPluginBase.php, line 21
Class
Namespace
Drupal\contextCode
public function getId() {
if (isset($this
->getConfiguration()['id'])) {
return $this
->getConfiguration()['id'];
}
return NULL;
}