You are here

public function ContextReactionPluginBase::getId in Context 8.0

Same name and namespace in other branches
  1. 8.4 src/ContextReactionPluginBase.php \Drupal\context\ContextReactionPluginBase::getId()
  2. 8 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

ContextReactionPluginBase

Namespace

Drupal\context

Code

public function getId() {
  if (isset($this
    ->getConfiguration()['id'])) {
    return $this
      ->getConfiguration()['id'];
  }
  return NULL;
}