protected function MenuBlock::getFixedMenuItemTitle in Menu Block 8
Gets the title of a fixed parent item.
Return value
string|null Title of the configured (fixed) parent item, or NULL if there is none.
1 call to MenuBlock::getFixedMenuItemTitle()
- MenuBlock::getBlockLabel in src/
Plugin/ Block/ MenuBlock.php - Gets the configured block label.
File
- src/
Plugin/ Block/ MenuBlock.php, line 442
Class
- MenuBlock
- Provides an extended Menu block.
Namespace
Drupal\menu_block\Plugin\BlockCode
protected function getFixedMenuItemTitle() {
$parent = $this->configuration['parent'];
if ($parent) {
$fixed_menu_link_id = str_replace($this
->getDerivativeId() . ':', '', $parent);
return $this
->getLinkTitleFromLink($fixed_menu_link_id);
}
}