You are here

public function ProfileEntityFieldItemList::referencedEntities in Profile 8

Gets the entities referenced by this field, preserving field item deltas.

Return value

\Drupal\Core\Entity\EntityInterface[] An array of entity objects keyed by field item deltas.

Overrides EntityReferenceFieldItemListInterface::referencedEntities

File

src/Plugin/Field/ProfileEntityFieldItemList.php, line 29

Class

ProfileEntityFieldItemList
Represents a profile entity reference field.

Namespace

Drupal\profile\Plugin\Field

Code

public function referencedEntities() {
  return $this
    ->getUserProfiles();
}