Mercurial > hg > cmmr2012-drupal-site
comparison core/lib/Drupal/Component/Plugin/ConfigurableInterface.php @ 5:12f9dff5fda9 tip
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:34:47 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
4:a9cd425dd02b | 5:12f9dff5fda9 |
---|---|
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 ConfigurableInterface { | |
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 } |