Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Component / Plugin / Definition / DerivablePluginDefinitionInterface.php
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 }