function UrlAliasBase::query
Same name in other branches
- 9 core/modules/path/src/Plugin/migrate/source/UrlAliasBase.php \Drupal\path\Plugin\migrate\source\UrlAliasBase::query()
- 8.9.x core/modules/path/src/Plugin/migrate/source/UrlAliasBase.php \Drupal\path\Plugin\migrate\source\UrlAliasBase::query()
- 10 core/modules/path/src/Plugin/migrate/source/UrlAliasBase.php \Drupal\path\Plugin\migrate\source\UrlAliasBase::query()
Overrides SqlBase::query
File
-
core/
modules/ path/ src/ Plugin/ migrate/ source/ UrlAliasBase.php, line 15
Class
- UrlAliasBase
- Base class for the url_alias source plugins.
Namespace
Drupal\path\Plugin\migrate\sourceCode
public function query() {
// The order of the migration is significant since
// \Drupal\path_alias\AliasRepository::lookupPathAlias() orders by pid
// before returning a result. Postgres does not automatically order by
// primary key therefore we need to add a specific order by.
return $this->select('url_alias', 'ua')
->fields('ua')
->orderBy('pid');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.