452f6992beb678d1468067179863b2f02446b09a
[yaffs-website] / Annotation / Relationship.php
1 <?php
2
3 namespace Drupal\ctools\Annotation;
4
5 use Drupal\Component\Annotation\Plugin;
6
7 /**
8  * Defines a Relationship item annotation object.
9  *
10  * @see \Drupal\ctools\Plugin\RelationshipManager
11  * @see plugin_api
12  *
13  * @Annotation
14  */
15 class Relationship extends Plugin {
16
17   /**
18    * The plugin ID.
19    *
20    * @var string
21    */
22   public $id;
23
24   /**
25    * The label of the plugin.
26    *
27    * @var \Drupal\Core\Annotation\Translation
28    *
29    * @ingroup plugin_translatable
30    */
31   public $label;
32
33   /**
34    * The returned data type of this relationship
35    *
36    * @var string
37    */
38   public $data_type;
39
40   /**
41    * The name of the property from which this relationship is derived.
42    *
43    * @var string
44    */
45   public $property_name;
46
47   /**
48    * The array of contexts requires or optional for this plugin.
49    *
50    * @var \Drupal\Core\Plugin\Context\ContextInterface[]
51    */
52   public $context;
53
54 }