You are here

public function ConfigPagesBlock::defaultConfiguration in Config Pages 8

Same name and namespace in other branches
  1. 8.3 src/Plugin/Block/ConfigPagesBlock.php \Drupal\config_pages\Plugin\Block\ConfigPagesBlock::defaultConfiguration()
  2. 8.2 src/Plugin/Block/ConfigPagesBlock.php \Drupal\config_pages\Plugin\Block\ConfigPagesBlock::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides BlockPluginTrait::defaultConfiguration

File

src/Plugin/Block/ConfigPagesBlock.php, line 99

Class

ConfigPagesBlock
Provides a generic ConfigPages block.

Namespace

Drupal\config_pages\Plugin\Block

Code

public function defaultConfiguration() {
  $settings = parent::defaultConfiguration();

  // Set custom cache settings.
  if (isset($this->pluginDefinition['cache'])) {
    $settings['cache'] = $this->pluginDefinition['cache'];
  }
  return $settings;
}