You are here

public function SystemMenuBlock::defaultConfiguration in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/src/Plugin/Block/SystemMenuBlock.php \Drupal\system\Plugin\Block\SystemMenuBlock::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides BlockBase::defaultConfiguration

1 call to SystemMenuBlock::defaultConfiguration()
SystemMenuBlock::blockForm in core/modules/system/src/Plugin/Block/SystemMenuBlock.php
Returns the configuration form elements specific to this block plugin.

File

core/modules/system/src/Plugin/Block/SystemMenuBlock.php, line 167
Contains \Drupal\system\Plugin\Block\SystemMenuBlock.

Class

SystemMenuBlock
Provides a generic Menu block.

Namespace

Drupal\system\Plugin\Block

Code

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