public function MigrationListBuilder::load in Migrate Tools 8
Loads entities of this type from storage for listing.
This allows the implementation to manipulate the listing, like filtering or sorting the loaded entities.
Return value
\Drupal\Core\Entity\EntityInterface[] An array of entities implementing \Drupal\Core\Entity\EntityInterface indexed by their IDs. Returns an empty array if no matching entities are found.
Overrides ConfigEntityListBuilder::load
File
- src/
Controller/ MigrationListBuilder.php, line 140 - Contains Drupal\migrate_tools\Controller\MigrationListBuilder.
Class
- MigrationListBuilder
- Provides a listing of migration entities in a given group.
Namespace
Drupal\migrate_tools\ControllerCode
public function load() {
$entity_ids = $this
->getEntityIds();
// We're already sorting the entities properly in loadMultiple, and
// ConfigEntityListBuilder's load() messes it up with an extra sort(). So,
// simply take the entities in the order loaded.
$entities = $this->storage
->loadMultipleOverrideFree($entity_ids);
return $entities;
}