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/destination/UrlAlias.php \Drupal\path\Plugin\migrate\destination\UrlAlias::fields()

Returns an array of destination fields.

Derived classes must implement fields(), returning a list of available destination fields.

@todo Review the cases where we need the Migration parameter, can we avoid that?

Parameters

\Drupal\migrate\Entity\MigrationInterface $migration: (optional) the migration containing this destination.

Return value

array

  • Keys: machine names of the fields
  • Values: Human-friendly descriptions of the fields.

Overrides MigrateDestinationInterface::fields

File

core/modules/path/src/Plugin/migrate/destination/UrlAlias.php, line 89
Contains \Drupal\path\Plugin\migrate\destination\UrlAlias.

Class

UrlAlias
Plugin annotation @MigrateDestination( id = "url_alias" )

Namespace

Drupal\path\Plugin\migrate\destination

Code

public function fields(MigrationInterface $migration = NULL) {
  return [
    'pid' => 'The path id',
    'source' => 'The source path.',
    'alias' => 'The url alias.',
    'langcode' => 'The language code for the url.',
  ];
}