You are here

public function TypedDataRelationship::getRelationshipValue in Chaos Tool Suite (ctools) 8.3

File

src/Plugin/Relationship/TypedDataRelationship.php, line 77

Class

TypedDataRelationship
Plugin annotation @Relationship( id = "typed_data_relationship", deriver = "\Drupal\ctools\Plugin\Deriver\TypedDataRelationshipDeriver" )

Namespace

Drupal\ctools\Plugin\Relationship

Code

public function getRelationshipValue() {
  $property = $this
    ->getMainPropertyName();

  /** @var \Drupal\Core\TypedData\ComplexDataInterface $data */
  $data = $this
    ->getRelationship()
    ->getContextData();
  $data
    ->get($property)
    ->getValue();
}