You are here

public function MenuBlock::defaultConfiguration in Menu Block 8

Overrides SystemMenuBlock::defaultConfiguration

1 call to MenuBlock::defaultConfiguration()
MenuBlock::blockForm in src/Plugin/Block/MenuBlock.php

File

src/Plugin/Block/MenuBlock.php, line 366

Class

MenuBlock
Provides an extended Menu block.

Namespace

Drupal\menu_block\Plugin\Block

Code

public function defaultConfiguration() {
  return [
    'follow' => 0,
    'follow_parent' => 'child',
    'level' => 1,
    'depth' => 0,
    'expand_all_items' => FALSE,
    'parent' => $this
      ->getDerivativeId() . ':',
    'suggestion' => strtr($this
      ->getDerivativeId(), '-', '_'),
    'label_type' => self::LABEL_BLOCK,
    'label_link' => FALSE,
  ];
}