public function ConfigPagesBlock::defaultConfiguration in Config Pages 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/Block/ConfigPagesBlock.php \Drupal\config_pages\Plugin\Block\ConfigPagesBlock::defaultConfiguration()
- 8 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 102
Class
- ConfigPagesBlock
- Provides a generic ConfigPages block.
Namespace
Drupal\config_pages\Plugin\BlockCode
public function defaultConfiguration() {
$settings = parent::defaultConfiguration();
// Set custom cache settings.
if (isset($this->pluginDefinition['cache'])) {
$settings['cache'] = $this->pluginDefinition['cache'];
}
return $settings;
}