You are here

public function DiffLayoutBase::setConfiguration in Diff 8

Sets the configuration for this plugin instance.

Parameters

array $configuration: An associative array containing the plugin's configuration.

Overrides ConfigurableInterface::setConfiguration

File

src/DiffLayoutBase.php, line 327

Class

DiffLayoutBase
Base class for diff layout plugins.

Namespace

Drupal\diff

Code

public function setConfiguration(array $configuration) {
  $config = $this->configFactory
    ->getEditable('diff.layout_plugins');
  $config
    ->set($this->pluginId, $configuration);
  $config
    ->save();
}