You are here

public function WarmerPluginBase::getConfiguration in Warmer 2.x

Same name and namespace in other branches
  1. 8 src/Plugin/WarmerPluginBase.php \Drupal\warmer\Plugin\WarmerPluginBase::getConfiguration()

Gets this plugin's configuration.

Return value

array An array of this plugin's configuration.

Overrides ConfigurableInterface::getConfiguration

13 calls to WarmerPluginBase::getConfiguration()
CdnWarmer::addMoreConfigurationFormElements in modules/warmer_cdn/src/Plugin/warmer/CdnWarmer.php
Adds additional form elements to the configuration form.
CdnWarmer::buildIdsBatch in modules/warmer_cdn/src/Plugin/warmer/CdnWarmer.php
Builds the next batch of IDs based on a position cursor.
CdnWarmer::parseHeaders in modules/warmer_cdn/src/Plugin/warmer/CdnWarmer.php
Parses the configuration to extract the headers to inject in every request.
EntityWarmer::addMoreConfigurationFormElements in modules/warmer_entity/src/Plugin/warmer/EntityWarmer.php
Adds additional form elements to the configuration form.
EntityWarmer::buildIdsBatch in modules/warmer_entity/src/Plugin/warmer/EntityWarmer.php
TODO: This is a naive implementation.

... See full list

File

src/Plugin/WarmerPluginBase.php, line 71

Class

WarmerPluginBase
Base class for warmer plugins that implement settings forms.

Namespace

Drupal\warmer\Plugin

Code

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