You are here

public function EntityReferenceRevisions::getTargetDefinition in Entity Reference Revisions 8

Returns the definition of the referenced entity.

Return value

\Drupal\Core\Entity\TypedData\EntityDataDefinitionInterface The reference target's definition.

Overrides EntityReference::getTargetDefinition

File

src/Plugin/DataType/EntityReferenceRevisions.php, line 56

Class

EntityReferenceRevisions
Defines an 'entity_reference_revisions' data type.

Namespace

Drupal\entity_reference_revisions\Plugin\DataType

Code

public function getTargetDefinition() {
  return $this->definition
    ->getTargetDefinition();
}