You are here

protected function MenuTrailByPathActiveTrail::getCid in Menu Trail By Path 8

Overrides MenuActiveTrail::getCid

See also

https://www.drupal.org/node/2824594

File

src/MenuTrailByPathActiveTrail.php, line 90

Class

MenuTrailByPathActiveTrail
Overrides the class for the file entity normalizer from HAL.

Namespace

Drupal\menu_trail_by_path

Code

protected function getCid() {
  if (!isset($this->cid)) {
    return parent::getCid() . ":langcode:{$this->languageManager->getCurrentLanguage()->getId()}:pathinfo:{$this->context->getPathInfo()}";
  }
  return $this->cid;
}