function NavigationMenuBlock::defaultConfiguration

Same name in other branches
  1. 10 core/modules/navigation/src/Plugin/Block/NavigationMenuBlock.php \Drupal\navigation\Plugin\Block\NavigationMenuBlock::defaultConfiguration()

Overrides SystemMenuBlock::defaultConfiguration

File

core/modules/navigation/src/Plugin/Block/NavigationMenuBlock.php, line 47

Class

NavigationMenuBlock
Provides a generic menu navigation block.

Namespace

Drupal\navigation\Plugin\Block

Code

public function defaultConfiguration() : array {
    return [
        'level' => 1,
        'depth' => 0,
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.