protected function MigrationListBuilder::getEntityIds in Migrate Tools 8
Same name and namespace in other branches
- 8.5 src/Controller/MigrationListBuilder.php \Drupal\migrate_tools\Controller\MigrationListBuilder::getEntityIds()
- 8.2 src/Controller/MigrationListBuilder.php \Drupal\migrate_tools\Controller\MigrationListBuilder::getEntityIds()
- 8.3 src/Controller/MigrationListBuilder.php \Drupal\migrate_tools\Controller\MigrationListBuilder::getEntityIds()
- 8.4 src/Controller/MigrationListBuilder.php \Drupal\migrate_tools\Controller\MigrationListBuilder::getEntityIds()
Retrieve the migrations belonging to the appropriate group.
Return value
array An array of entity IDs.
Overrides EntityListBuilder::getEntityIds
1 call to MigrationListBuilder::getEntityIds()
- MigrationListBuilder::load in src/
Controller/ MigrationListBuilder.php - Loads entities of this type from storage for listing.
File
- src/
Controller/ MigrationListBuilder.php, line 155 - Contains Drupal\migrate_tools\Controller\MigrationListBuilder.
Class
- MigrationListBuilder
- Provides a listing of migration entities in a given group.
Namespace
Drupal\migrate_tools\ControllerCode
protected function getEntityIds() {
$query = $this
->getStorage()
->getQuery('OR');
$keys = $this->entityType
->getKeys();
$migration_group = $this->currentRouteMatch
->getParameter('migration_group');
// Add groupless migrations to the default group.
if ($migration_group == 'default') {
$query
->notExists('third_party_settings.migrate_plus.migration_group');
}
return $query
->condition('third_party_settings.migrate_plus.migration_group', $migration_group)
->sort($keys['id'])
->pager($this->limit)
->execute();
}