You are here

public function UrlAlias::fields in Drupal 10

Same name in this branch
  1. 10 core/modules/path/src/Plugin/migrate/source/d6/UrlAlias.php \Drupal\path\Plugin\migrate\source\d6\UrlAlias::fields()
  2. 10 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 core/modules/path/src/Plugin/migrate/source/d6/UrlAlias.php \Drupal\path\Plugin\migrate\source\d6\UrlAlias::fields()
  2. 9 core/modules/path/src/Plugin/migrate/source/d6/UrlAlias.php \Drupal\path\Plugin\migrate\source\d6\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/d6/UrlAlias.php, line 25

Class

UrlAlias
Drupal 6 URL aliases source from database.

Namespace

Drupal\path\Plugin\migrate\source\d6

Code

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