function VariantBase::getConfiguration

Same name in other branches
  1. 9 core/lib/Drupal/Core/Display/VariantBase.php \Drupal\Core\Display\VariantBase::getConfiguration()
  2. 10 core/lib/Drupal/Core/Display/VariantBase.php \Drupal\Core\Display\VariantBase::getConfiguration()
  3. 11.x core/lib/Drupal/Core/Display/VariantBase.php \Drupal\Core\Display\VariantBase::getConfiguration()

Overrides ConfigurableInterface::getConfiguration

1 call to VariantBase::getConfiguration()
TestDisplayVariant::build in core/modules/system/tests/modules/display_variant_test/src/Plugin/DisplayVariant/TestDisplayVariant.php
Builds and returns the renderable array for the display variant.

File

core/lib/Drupal/Core/Display/VariantBase.php, line 71

Class

VariantBase
Provides a base class for DisplayVariant plugins.

Namespace

Drupal\Core\Display

Code

public function getConfiguration() {
    return [
        'id' => $this->getPluginId(),
    ] + $this->configuration;
}

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