You are here

protected function FieldMenuBlock::addThemeSuggestion in Menu item content fields 8

Add a suggestion to be able to overwrite menu links markup.

1 call to FieldMenuBlock::addThemeSuggestion()
FieldMenuBlock::build in src/Plugin/Block/FieldMenuBlock.php
Builds and returns the renderable array for this block plugin.

File

src/Plugin/Block/FieldMenuBlock.php, line 114

Class

FieldMenuBlock
Provides a drupal menu that uses display view modes.

Namespace

Drupal\menu_item_fields\Plugin\Block

Code

protected function addThemeSuggestion($themeHook) {
  return preg_replace('/^menu__/', 'menu__field_content__', $themeHook);
}