Version 1
[yaffs-website] / web / core / lib / Drupal / Component / Plugin / ConfigurablePluginInterface.php
1 <?php
2
3 namespace Drupal\Component\Plugin;
4
5 /**
6  * Provides an interface for a configurable plugin.
7  *
8  * @ingroup plugin_api
9  */
10 interface ConfigurablePluginInterface extends DependentPluginInterface {
11
12   /**
13    * Gets this plugin's configuration.
14    *
15    * @return array
16    *   An array of this plugin's configuration.
17    */
18   public function getConfiguration();
19
20   /**
21    * Sets the configuration for this plugin instance.
22    *
23    * @param array $configuration
24    *   An associative array containing the plugin's configuration.
25    */
26   public function setConfiguration(array $configuration);
27
28   /**
29    * Gets default configuration for this plugin.
30    *
31    * @return array
32    *   An associative array with the default configuration.
33    */
34   public function defaultConfiguration();
35
36 }