Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ViewsBlock.php

function ViewsBlock::getConfiguration

Overrides BlockPluginTrait::getConfiguration

File

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

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal