0372a0eea77421c36acc62fe532a82782ba62d2b
[yaffs-website] / Plugin / RelationshipInterface.php
1 <?php
2
3 namespace Drupal\ctools\Plugin;
4
5 use Drupal\Component\Plugin\DerivativeInspectionInterface;
6 use Drupal\Core\Plugin\ContextAwarePluginInterface;
7
8 /**
9  * Defines an interface for Relationship plugins.
10  */
11 interface RelationshipInterface extends ContextAwarePluginInterface, DerivativeInspectionInterface {
12
13   /**
14    * Generates a context based on this plugin's configuration.
15    *
16    * @return \Drupal\Core\Plugin\Context\ContextInterface
17    */
18   public function getRelationship();
19
20   /**
21    * The name of the property used to get this relationship.
22    *
23    * @return string
24    */
25   public function getName();
26
27 }