You are here

public function UrlAlias::fields in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/path/src/Plugin/migrate/destination/UrlAlias.php \Drupal\path\Plugin\migrate\destination\UrlAlias::fields()
  2. 8 core/modules/path/src/Plugin/migrate/source/d6/UrlAlias.php \Drupal\path\Plugin\migrate\source\d6\UrlAlias::fields()
  3. 8 core/modules/path/src/Plugin/migrate/source/d7/UrlAlias.php \Drupal\path\Plugin\migrate\source\d7\UrlAlias::fields()
Same name and namespace in other branches
  1. 8.0 core/modules/path/src/Plugin/migrate/source/d7/UrlAlias.php \Drupal\path\Plugin\migrate\source\d7\UrlAlias::fields()

Returns available fields on the source.

Return value

array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.

Overrides UrlAliasBase::fields

File

core/modules/path/src/Plugin/migrate/source/d7/UrlAlias.php, line 25
Contains \Drupal\path\Plugin\migrate\source\d7\UrlAlias.

Class

UrlAlias
URL aliases source from database.

Namespace

Drupal\path\Plugin\migrate\source\d7

Code

public function fields() {
  $fields = parent::fields();
  $fields['source'] = $this
    ->t('The internal system path.');
  $fields['alias'] = $this
    ->t('The path alias.');
  return $fields;
}