W3cubDocs

/Drupal 8

public function VariantBase::getConfiguration

public VariantBase::getConfiguration()

Gets this plugin's configuration.

Return value

array An array of this plugin's configuration.

Overrides ConfigurablePluginInterface::getConfiguration

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 array(
    'id' => $this->getPluginId(),
  ) + $this->configuration;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Display!VariantBase.php/function/VariantBase::getConfiguration/8.1.x