public function ParentCandidateInterface::getCandidateFields in Entity Reference Hierarchy 8.2
Same name and namespace in other branches
- 3.x 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\InformationCode
public function getCandidateFields(EntityInterface $entity);