protected function TypedDataRelationship::getMainPropertyName in Chaos Tool Suite (ctools) 8.3
2 calls to TypedDataRelationship::getMainPropertyName()
- TypedDataRelationship::getRelationship in src/
Plugin/ Relationship/ TypedDataRelationship.php - Generates a context based on this plugin's configuration.
- TypedDataRelationship::getRelationshipValue in src/
Plugin/ Relationship/ TypedDataRelationship.php
File
- src/
Plugin/ Relationship/ TypedDataRelationship.php, line 72
Class
- TypedDataRelationship
- Plugin annotation @Relationship( id = "typed_data_relationship", deriver = "\Drupal\ctools\Plugin\Deriver\TypedDataRelationshipDeriver" )
Namespace
Drupal\ctools\Plugin\RelationshipCode
protected function getMainPropertyName(FieldItemInterface $data) {
return $data
->getFieldDefinition()
->getFieldStorageDefinition()
->getMainPropertyName();
}