function SystemMenuBlock::defaultConfiguration

Same name and namespace in other branches
  1. 9 core/modules/system/src/Plugin/Block/SystemMenuBlock.php \Drupal\system\Plugin\Block\SystemMenuBlock::defaultConfiguration()
  2. 8.9.x core/modules/system/src/Plugin/Block/SystemMenuBlock.php \Drupal\system\Plugin\Block\SystemMenuBlock::defaultConfiguration()
  3. 10 core/modules/system/src/Plugin/Block/SystemMenuBlock.php \Drupal\system\Plugin\Block\SystemMenuBlock::defaultConfiguration()

Overrides BlockPluginTrait::defaultConfiguration

1 call to SystemMenuBlock::defaultConfiguration()
SystemMenuBlock::blockForm in core/modules/system/src/Plugin/Block/SystemMenuBlock.php
1 method overrides SystemMenuBlock::defaultConfiguration()
NavigationMenuBlock::defaultConfiguration in core/modules/navigation/src/Plugin/Block/NavigationMenuBlock.php

File

core/modules/system/src/Plugin/Block/SystemMenuBlock.php, line 203

Class

SystemMenuBlock
Provides a generic Menu block.

Namespace

Drupal\system\Plugin\Block

Code

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

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