Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Component/Plugin/Definition/DerivablePluginDefinitionInterface.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Component\Plugin\Definition; | |
4 | |
5 /** | |
6 * Provides an interface for a derivable plugin definition. | |
7 * | |
8 * @see \Drupal\Component\Plugin\Derivative\DeriverInterface | |
9 */ | |
10 interface DerivablePluginDefinitionInterface extends PluginDefinitionInterface { | |
11 | |
12 /** | |
13 * Gets the name of the deriver of this plugin definition, if it exists. | |
14 * | |
15 * @return string|null | |
16 * Either the deriver class name, or NULL if the plugin is not derived. | |
17 */ | |
18 public function getDeriver(); | |
19 | |
20 /** | |
21 * Sets the deriver of this plugin definition. | |
22 * | |
23 * @param string|null $deriver | |
24 * Either the name of a class that implements | |
25 * \Drupal\Component\Plugin\Derivative\DeriverInterface, or NULL. | |
26 * | |
27 * @return $this | |
28 */ | |
29 public function setDeriver($deriver); | |
30 | |
31 } |