class Relationship

Defines a Relationship item annotation object.

Hierarchy

Expanded class hierarchy of Relationship

See also

\Drupal\ctools\Plugin\RelationshipManager

Plugin API

1 string reference to 'Relationship'
ctools.schema.yml in config/schema/ctools.schema.yml
config/schema/ctools.schema.yml
3 classes are annotated with Relationship
TypedDataEntityRelationship in src/Plugin/Relationship/TypedDataEntityRelationship.php
Plugin annotation @Relationship( id = "typed_data_entity_relationship", deriver = "\Drupal\ctools\Plugin\Deriver\TypedDataEntityRelationshipDeriver" )
TypedDataLanguageRelationship in src/Plugin/Relationship/TypedDataLanguageRelationship.php
Plugin annotation @Relationship( id = "typed_data_language_relationship", deriver = "\Drupal\ctools\Plugin\Deriver\TypedDataLanguageRelationshipDeriver" )
TypedDataRelationship in src/Plugin/Relationship/TypedDataRelationship.php
Plugin annotation @Relationship( id = "typed_data_relationship", deriver = "\Drupal\ctools\Plugin\Deriver\TypedDataRelationshipDeriver" )

File

src/Annotation/Relationship.php, line 15

Namespace

Drupal\ctools\Annotation
View source
class Relationship extends Plugin {
  
  /**
   * The plugin ID.
   *
   * @var string
   */
  public $id;
  
  /**
   * The label of the plugin.
   *
   * @var \Drupal\Core\Annotation\Translation
   *
   * @ingroup plugin_translatable
   */
  public $label;
  
  /**
   * The returned data type of this relationship.
   *
   * @var string
   */
  public $data_type;
  
  /**
   * The name of the property from which this relationship is derived.
   *
   * @var string
   */
  public $property_name;
  
  /**
   * The array of contexts requires or optional for this plugin.
   *
   * @var \Drupal\Core\Plugin\Context\ContextInterface[]
   */
  public $context;

}

Members

Title Sort descending Modifiers Object type Summary
Relationship::$context public property The array of contexts requires or optional for this plugin.
Relationship::$data_type public property The returned data type of this relationship.
Relationship::$id public property The plugin ID.
Relationship::$label public property The label of the plugin.
Relationship::$property_name public property The name of the property from which this relationship is derived.