interface ConfigurablePluginInterface in Plug 7
Provides an interface for a configurable plugin.
Hierarchy
- interface \Drupal\Component\Plugin\DependentPluginInterface
- interface \Drupal\Component\Plugin\ConfigurablePluginInterface
Expanded class hierarchy of ConfigurablePluginInterface
All classes that implement ConfigurablePluginInterface
1 file declares its use of ConfigurablePluginInterface
- DefaultLazyPluginCollection.php in lib/
Drupal/ Core/ Plugin/ DefaultLazyPluginCollection.php - Contains \Drupal\Core\Plugin\DefaultLazyPluginCollection.
File
- lib/
Drupal/ Component/ Plugin/ ConfigurablePluginInterface.php, line 15 - Contains \Drupal\Component\Plugin\ConfigurablePluginInterface.
Namespace
Drupal\Component\PluginView source
interface ConfigurablePluginInterface extends DependentPluginInterface {
/**
* Gets this plugin's configuration.
*
* @return array
* An array of this plugin's configuration.
*/
public function getConfiguration();
/**
* Sets the configuration for this plugin instance.
*
* @param array $configuration
* An associative array containing the plugin's configuration.
*/
public function setConfiguration(array $configuration);
/**
* Gets default configuration for this plugin.
*
* @return array
* An associative array with the default configuration.
*/
public function defaultConfiguration();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ConfigurablePluginInterface:: |
public | function | Gets default configuration for this plugin. | |
ConfigurablePluginInterface:: |
public | function | Gets this plugin's configuration. | |
ConfigurablePluginInterface:: |
public | function | Sets the configuration for this plugin instance. | |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. |