You are here

public function ParentCandidateInterface::getCandidateFields in Entity Reference Hierarchy 3.x

Same name and namespace in other branches
  1. 8.2 src/Information/ParentCandidateInterface.php \Drupal\entity_hierarchy\Information\ParentCandidateInterface::getCandidateFields()

Gets all fields that allow referencing this entity as a parent.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: Entity to get parent candidate fields for.

Return value

array Field names that would allow referencing this entity as a parent.

1 method overrides ParentCandidateInterface::getCandidateFields()
ParentCandidate::getCandidateFields in src/Information/ParentCandidate.php
Gets all fields that allow referencing this entity as a parent.

File

src/Information/ParentCandidateInterface.php, line 21

Class

ParentCandidateInterface
Defines an interface for determining if an entity is a parent candidate.

Namespace

Drupal\entity_hierarchy\Information

Code

public function getCandidateFields(EntityInterface $entity);