public function ActiveTrail::getLinkId in Context Active Trail 8
Same name and namespace in other branches
- 8.2 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\ContextReactionCode
public function getLinkId() {
if (!isset($this->configuration['trail'])) {
return NULL;
}
list(, $link_id) = explode(':', $this->configuration['trail'], 2);
return $link_id;
}