Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
2 / 2 |
CRAP | |
100.00% |
3 / 3 |
UrlAliasBase | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
3 | |
100.00% |
3 / 3 |
query | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
fields | |
100.00% |
1 / 1 |
1 | |
100.00% |
0 / 0 |
|||
getIds | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
<?php | |
/** | |
* @file | |
* Contains \Drupal\path\Plugin\migrate\source\UrlAliasBase. | |
*/ | |
namespace Drupal\path\Plugin\migrate\source; | |
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase; | |
/** | |
* Base class for the url_alias source plugins. | |
*/ | |
abstract class UrlAliasBase extends DrupalSqlBase { | |
/** | |
* {@inheritdoc} | |
*/ | |
public function query() { | |
return $this->select('url_alias', 'ua')->fields('ua'); | |
} | |
/** | |
* {@inheritdoc} | |
*/ | |
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.'), | |
); | |
} | |
/** | |
* {@inheritdoc} | |
*/ | |
public function getIds() { | |
$ids['pid']['type'] = 'integer'; | |
return $ids; | |
} | |
} |