class TypedDataEntityRelationshipDeriver in Chaos Tool Suite (ctools) 8.3
Hierarchy
- class \Drupal\Component\Plugin\Derivative\DeriverBase implements DeriverInterface
- class \Drupal\ctools\Plugin\Deriver\TypedDataPropertyDeriverBase implements ContainerDeriverInterface uses StringTranslationTrait
- class \Drupal\ctools\Plugin\Deriver\TypedDataRelationshipDeriver implements ContainerDeriverInterface
- class \Drupal\ctools\Plugin\Deriver\TypedDataEntityRelationshipDeriver
- class \Drupal\ctools\Plugin\Deriver\TypedDataRelationshipDeriver implements ContainerDeriverInterface
- class \Drupal\ctools\Plugin\Deriver\TypedDataPropertyDeriverBase implements ContainerDeriverInterface uses StringTranslationTrait
Expanded class hierarchy of TypedDataEntityRelationshipDeriver
File
- src/
Plugin/ Deriver/ TypedDataEntityRelationshipDeriver.php, line 8
Namespace
Drupal\ctools\Plugin\DeriverView source
class TypedDataEntityRelationshipDeriver extends TypedDataRelationshipDeriver {
/**
* {@inheritdoc}
*/
protected $label = '@property Entity from @base';
/**
* {@inheritdoc}
*/
protected function generateDerivativeDefinition($base_plugin_definition, $data_type_id, $data_type_definition, DataDefinitionInterface $base_definition, $property_name, DataDefinitionInterface $property_definition) {
if (method_exists($property_definition, 'getType') && $property_definition
->getType() == 'entity_reference') {
parent::generateDerivativeDefinition($base_plugin_definition, $data_type_id, $data_type_definition, $base_definition, $property_name, $property_definition);
}
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DeriverBase:: |
protected | property | List of derivative definitions. | 1 |
DeriverBase:: |
public | function |
Gets the definition of a derivative plugin. Overrides DeriverInterface:: |
|
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
TypedDataEntityRelationshipDeriver:: |
protected | property |
The label string for use with derivative labels. Overrides TypedDataPropertyDeriverBase:: |
|
TypedDataEntityRelationshipDeriver:: |
protected | function |
Generates and maintains a derivative definition. Overrides TypedDataRelationshipDeriver:: |
|
TypedDataPropertyDeriverBase:: |
protected | property | ||
TypedDataPropertyDeriverBase:: |
public static | function |
Creates a new class instance. Overrides ContainerDeriverInterface:: |
|
TypedDataPropertyDeriverBase:: |
protected | function | ||
TypedDataPropertyDeriverBase:: |
public | function |
Gets the definition of all derivatives of a base plugin. Overrides DeriverBase:: |
1 |
TypedDataPropertyDeriverBase:: |
public | function | TypedDataPropertyDeriverBase constructor. |