You are here

public function UrlAliasBase::fields in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/path/src/Plugin/migrate/source/UrlAliasBase.php \Drupal\path\Plugin\migrate\source\UrlAliasBase::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 MigrateSourceInterface::fields

2 calls to UrlAliasBase::fields()
UrlAlias::fields in core/modules/path/src/Plugin/migrate/source/d6/UrlAlias.php
Returns available fields on the source.
UrlAlias::fields in core/modules/path/src/Plugin/migrate/source/d7/UrlAlias.php
Returns available fields on the source.
2 methods override UrlAliasBase::fields()
UrlAlias::fields in core/modules/path/src/Plugin/migrate/source/d6/UrlAlias.php
Returns available fields on the source.
UrlAlias::fields in core/modules/path/src/Plugin/migrate/source/d7/UrlAlias.php
Returns available fields on the source.

File

core/modules/path/src/Plugin/migrate/source/UrlAliasBase.php, line 26

Class

UrlAliasBase
Base class for the url_alias source plugins.

Namespace

Drupal\path\Plugin\migrate\source

Code

public function fields() {
  return [
    'pid' => $this
      ->t('The numeric identifier of the path alias.'),
    'language' => $this
      ->t('The language code of the URL alias.'),
  ];
}