annotate core/lib/Drupal/Component/Plugin/Definition/DerivablePluginDefinitionInterface.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 namespace Drupal\Component\Plugin\Definition;
Chris@0 4
Chris@0 5 /**
Chris@0 6 * Provides an interface for a derivable plugin definition.
Chris@0 7 *
Chris@0 8 * @see \Drupal\Component\Plugin\Derivative\DeriverInterface
Chris@0 9 */
Chris@0 10 interface DerivablePluginDefinitionInterface extends PluginDefinitionInterface {
Chris@0 11
Chris@0 12 /**
Chris@0 13 * Gets the name of the deriver of this plugin definition, if it exists.
Chris@0 14 *
Chris@0 15 * @return string|null
Chris@0 16 * Either the deriver class name, or NULL if the plugin is not derived.
Chris@0 17 */
Chris@0 18 public function getDeriver();
Chris@0 19
Chris@0 20 /**
Chris@0 21 * Sets the deriver of this plugin definition.
Chris@0 22 *
Chris@0 23 * @param string|null $deriver
Chris@0 24 * Either the name of a class that implements
Chris@0 25 * \Drupal\Component\Plugin\Derivative\DeriverInterface, or NULL.
Chris@0 26 *
Chris@0 27 * @return $this
Chris@0 28 */
Chris@0 29 public function setDeriver($deriver);
Chris@0 30
Chris@0 31 }