function ViewsBlock::getConfiguration

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/Block/ViewsBlock.php \Drupal\views\Plugin\Block\ViewsBlock::getConfiguration()
  2. 8.9.x core/modules/views/src/Plugin/Block/ViewsBlock.php \Drupal\views\Plugin\Block\ViewsBlock::getConfiguration()
  3. 10 core/modules/views/src/Plugin/Block/ViewsBlock.php \Drupal\views\Plugin\Block\ViewsBlock::getConfiguration()

Overrides BlockPluginTrait::getConfiguration

File

core/modules/views/src/Plugin/Block/ViewsBlock.php, line 85

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.