EntityLoaderInterface
in
Custom loader for entities in the choice list.
Tags
Table of Contents
- getEntities() : array<string|int, mixed>
- Returns an array of entities that are valid choices in the corresponding choice list.
- getEntitiesByIds() : array<string|int, mixed>
- Returns an array of entities matching the given identifiers.
Methods
getEntities()
Returns an array of entities that are valid choices in the corresponding choice list.
public
getEntities() : array<string|int, mixed>
Return values
array<string|int, mixed> —The entities
getEntitiesByIds()
Returns an array of entities matching the given identifiers.
public
getEntitiesByIds(string $identifier, array<string|int, mixed> $values) : array<string|int, mixed>
Parameters
- $identifier : string
-
The identifier field of the object. This method is not applicable for fields with multiple identifiers.
- $values : array<string|int, mixed>
-
The values of the identifiers
Return values
array<string|int, mixed> —The entities