You are here

public function EntityUsageTrackInterface::getReferencingFields in Entity Usage 8.2

Same name and namespace in other branches
  1. 8.3 src/EntityUsageTrackInterface.php \Drupal\entity_usage\EntityUsageTrackInterface::getReferencingFields()

Retrieve fields of the given types on an entity.

Parameters

\Drupal\Core\Entity\EntityInterface $source_entity: The source entity object.

string[] $field_types: A list of field types.

Return value

\Drupal\Core\Field\FieldDefinitionInterface[] An array of fields that could reference to other content entities.

1 method overrides EntityUsageTrackInterface::getReferencingFields()
EntityUsageTrackBase::getReferencingFields in src/EntityUsageTrackBase.php
Retrieve fields of the given types on an entity.

File

src/EntityUsageTrackInterface.php, line 81

Class

EntityUsageTrackInterface
Defines the interface for entity_usage track methods.

Namespace

Drupal\entity_usage

Code

public function getReferencingFields(EntityInterface $source_entity, array $field_types);