You are here

public function NiceMenusBlock::getBlockConfigExtended in Nice Menus 8

3 calls to NiceMenusBlock::getBlockConfigExtended()
NiceMenusBlock::build in src/Plugin/Block/NiceMenusBlock.php
NiceMenusBlock::getCacheContexts in src/Plugin/Block/NiceMenusBlock.php
The cache contexts associated with this object.
NiceMenusBlock::getCacheTags in src/Plugin/Block/NiceMenusBlock.php
The cache tags associated with this object.

File

src/Plugin/Block/NiceMenusBlock.php, line 251

Class

NiceMenusBlock
Provides a 'Nice menus' block.

Namespace

Drupal\nice_menus\Plugin\Block

Code

public function getBlockConfigExtended() {

  // get config.
  $block_config = $this
    ->getConfiguration();

  // set default menu_name and menu_mlid.
  list($block_config['menu_name'], $block_config['menu_mlid']) = explode(':', $block_config['nice_menus_menu'], 2);
  return $block_config;
}