3 namespace Drupal\Component\Plugin;
6 * Provides an interface for a configurable plugin.
10 interface ConfigurablePluginInterface extends DependentPluginInterface {
13 * Gets this plugin's configuration.
16 * An array of this plugin's configuration.
18 public function getConfiguration();
21 * Sets the configuration for this plugin instance.
23 * @param array $configuration
24 * An associative array containing the plugin's configuration.
26 public function setConfiguration(array $configuration);
29 * Gets default configuration for this plugin.
32 * An associative array with the default configuration.
34 public function defaultConfiguration();