You are here

public function ParentCandidateInterface::getCandidateBundles in Entity Reference Hierarchy 8.2

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

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

Parameters

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

Return value

array Bundles that support this entity as parent, keyed by field name.

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

File

src/Information/ParentCandidateInterface.php, line 32

Class

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

Namespace

Drupal\entity_hierarchy\Information

Code

public function getCandidateBundles(EntityInterface $entity);