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/d7/PathRedirect.php, line 55
Contains \Drupal\redirect\Plugin\migrate\source\d7\PathRedirect.

Class

PathRedirect
Drupal 7 path redirect source from database.

Namespace

Drupal\redirect\Plugin\migrate\source\d7

Code

public function fields() {
  $fields = [
    'rid' => $this
      ->t('Redirect ID'),
    'hash' => $this
      ->t('Hash'),
    'type' => $this
      ->t('Type'),
    'uid' => $this
      ->t('UID'),
    'source' => $this
      ->t('Source'),
    'source_options' => $this
      ->t('Source Options'),
    'redirect' => $this
      ->t('Redirect'),
    'redirect_options' => $this
      ->t('Redirect Options'),
    'language' => $this
      ->t('Language'),
    'status_code' => $this
      ->t('Status Code'),
    'count' => $this
      ->t('Count'),
    'access' => $this
      ->t('Access'),
  ];
  return $fields;
}