public function ViewsBlock::defaultConfiguration in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/Block/ViewsBlock.php \Drupal\views\Plugin\Block\ViewsBlock::defaultConfiguration()
- 9 core/modules/views/src/Plugin/Block/ViewsBlock.php \Drupal\views\Plugin\Block\ViewsBlock::defaultConfiguration()
File
- core/
modules/ views/ src/ Plugin/ Block/ ViewsBlock.php, line 97
Class
- ViewsBlock
- Provides a generic Views block.
Namespace
Drupal\views\Plugin\BlockCode
public function defaultConfiguration() {
$settings = parent::defaultConfiguration();
if ($this->displaySet) {
$settings += $this->view->display_handler
->blockSettings($settings);
}
// Set custom cache settings.
if (isset($this->pluginDefinition['cache'])) {
$settings['cache'] = $this->pluginDefinition['cache'];
}
return $settings;
}