You are here

public function ActiveTrail::getLinkId in Context Active Trail 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/ContextReaction/ActiveTrail.php \Drupal\context_active_trail\Plugin\ContextReaction\ActiveTrail::getLinkId()

Get the link plugin ID.

Return value

string The link ID.

File

src/Plugin/ContextReaction/ActiveTrail.php, line 123

Class

ActiveTrail
Provides a reaction that sets the active trail.

Namespace

Drupal\context_active_trail\Plugin\ContextReaction

Code

public function getLinkId() {
  if (!isset($this->configuration['trail'])) {
    return NULL;
  }
  list(, $link_id) = explode(':', $this->configuration['trail'], 2);
  return $link_id;
}