You are here

interface DependencyFieldMapGeneratorInterface in Entity Reference Integrity 8

An interface for generating field maps.

Hierarchy

Expanded class hierarchy of DependencyFieldMapGeneratorInterface

All classes that implement DependencyFieldMapGeneratorInterface

File

src/DependencyFieldMapGeneratorInterface.php, line 8

Namespace

Drupal\entity_reference_integrity
View source
interface DependencyFieldMapGeneratorInterface {

  /**
   * A field map keyed by the entity type being targeted by reference fields.
   *
   * The referential field map is in the format of:
   *
   * entity_type_id_being_referenced:
   *   source_entity_type_id:
   *     - referencing_field_a
   *     - referencing_field_b
   *
   * @return array
   *   A field map.
   */
  public function getReferentialFieldMap();

  /**
   * Get the segment of the field map for a specific entity type ID.
   *
   * @param string $entity_type_id
   *   An entity type ID.
   *
   * @return array
   *   A segment of the field map.
   */
  public function getReferencingFields($entity_type_id);

}

Members

Namesort descending Modifiers Type Description Overrides
DependencyFieldMapGeneratorInterface::getReferencingFields public function Get the segment of the field map for a specific entity type ID. 1
DependencyFieldMapGeneratorInterface::getReferentialFieldMap public function A field map keyed by the entity type being targeted by reference fields. 1