You are here

public function PathautoPattern::fields in Pathauto 8

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/PathautoPattern.php, line 75

Class

PathautoPattern
Fetches pathauto patterns from the source database.

Namespace

Drupal\pathauto\Plugin\migrate\source

Code

public function fields() {
  return [
    'name' => $this
      ->t("The name of the pattern's variable."),
    'value' => $this
      ->t("The value of the pattern's variable."),
  ];
}