public function MenuBlockCurrentLanguage::setMenuActiveTrail in Menu block current language 8
Sets the menu active trail.
Parameters
\Drupal\Core\Menu\MenuActiveTrailInterface $activeTrail: The active menu trail.
Return value
$this The self.
File
- src/
Plugin/ Block/ MenuBlockCurrentLanguage.php, line 51
Class
- MenuBlockCurrentLanguage
- Provides a generic Menu block.
Namespace
Drupal\menu_block_current_language\Plugin\BlockCode
public function setMenuActiveTrail(MenuActiveTrailInterface $activeTrail) {
$this->menuActiveTrail = $activeTrail;
return $this;
}