configuration; } /** * Sets the configuration for this plugin instance. * * The provided configuration is merged with the plugin's default * configuration. If the same configuration key exists in both configurations, * then the value in the provided configuration will override the default. * * @param array $configuration * An associative array containing the plugin's configuration. * * @return $this * * @see \Drupal\Component\Plugin\ConfigurableInterface::setConfiguration() */ public function setConfiguration(array $configuration) { $this->configuration = NestedArray::mergeDeepArray([$this->defaultConfiguration(), $configuration], TRUE); return $this; } /** * Gets default configuration for this plugin. * * @return array * An associative array containing the default configuration. * * @see \Drupal\Component\Plugin\ConfigurableInterface::defaultConfiguration() */ public function defaultConfiguration() { return []; } }