You are here

public function DependencyFieldMapGenerator::getReferencingFields in Entity Reference Integrity 8

Get the segment of the field map for a specific entity type ID.

Parameters

string $entity_type_id: An entity type ID.

Return value

array A segment of the field map.

Overrides DependencyFieldMapGeneratorInterface::getReferencingFields

File

src/DependencyFieldMapGenerator.php, line 91

Class

DependencyFieldMapGenerator
Create a map of reference fields.

Namespace

Drupal\entity_reference_integrity

Code

public function getReferencingFields($entity_type_id) {
  $map = $this
    ->getReferentialFieldMap();
  return isset($map[$entity_type_id]) ? $map[$entity_type_id] : [];
}