You are here

public function ViewsBlock::getConfiguration 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::getConfiguration()

Gets this plugin's configuration.

Return value

array An array of this plugin's configuration.

Overrides BlockBase::getConfiguration

File

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

Class

ViewsBlock
Provides a generic Views block.

Namespace

Drupal\views\Plugin\Block

Code

public function getConfiguration() {
  $configuration = parent::getConfiguration();

  // Set the label to the static title configured in the view.
  if (!empty($configuration['views_label'])) {
    $configuration['label'] = $configuration['views_label'];
  }
  return $configuration;
}