You are here

public function PathRedirect::fields in Redirect 8

Same name in this branch
  1. 8 src/Plugin/migrate/source/PathRedirect.php \Drupal\redirect\Plugin\migrate\source\PathRedirect::fields()
  2. 8 src/Plugin/migrate/source/d7/PathRedirect.php \Drupal\redirect\Plugin\migrate\source\d7\PathRedirect::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

File

src/Plugin/migrate/source/PathRedirect.php, line 40

Class

PathRedirect
Drupal 6 path redirect source from database.

Namespace

Drupal\redirect\Plugin\migrate\source

Code

public function fields() {
  $fields = [
    'rid' => $this
      ->t('Redirect ID'),
    'source' => $this
      ->t('Source'),
    'redirect' => $this
      ->t('Redirect'),
    'query' => $this
      ->t('Query'),
    'fragment' => $this
      ->t('Fragment'),
    'language' => $this
      ->t('Language'),
    'type' => $this
      ->t('Type'),
    'last_used' => $this
      ->t('Last Used'),
  ];
  return $fields;
}