UrlAliasBase.php in Zircon Profile 8
File
core/modules/path/src/Plugin/migrate/source/UrlAliasBase.php
View source
<?php
namespace Drupal\path\Plugin\migrate\source;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
abstract class UrlAliasBase extends DrupalSqlBase {
public function query() {
return $this
->select('url_alias', 'ua')
->fields('ua');
}
public function fields() {
return array(
'pid' => $this
->t('The numeric identifier of the path alias.'),
'language' => $this
->t('The language code of the url alias.'),
);
}
public function getIds() {
$ids['pid']['type'] = 'integer';
return $ids;
}
}