You are here

public function ViewsBlock::defaultConfiguration in Zircon Profile 8

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

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides ViewsBlockBase::defaultConfiguration

File

core/modules/views/src/Plugin/Block/ViewsBlock.php, line 77
Contains \Drupal\views\Plugin\Block\ViewsBlock.

Class

ViewsBlock
Provides a generic Views block.

Namespace

Drupal\views\Plugin\Block

Code

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;
}