Same name in this branch
  1. 10 core/modules/filter/src/Plugin/migrate/source/d6/FilterFormat.php \Drupal\filter\Plugin\migrate\source\d6\FilterFormat::fields()
  2. 10 core/modules/filter/src/Plugin/migrate/source/d7/FilterFormat.php \Drupal\filter\Plugin\migrate\source\d7\FilterFormat::fields()
Same name and namespace in other branches
  1. 8.9.x core/modules/filter/src/Plugin/migrate/source/d6/FilterFormat.php \Drupal\filter\Plugin\migrate\source\d6\FilterFormat::fields()
  2. 9 core/modules/filter/src/Plugin/migrate/source/d6/FilterFormat.php \Drupal\filter\Plugin\migrate\source\d6\FilterFormat::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

core/modules/filter/src/Plugin/migrate/source/d6/FilterFormat.php, line 33

Class

FilterFormat
Drupal 6 filter source from database.

Namespace

Drupal\filter\Plugin\migrate\source\d6

Code

public function fields() {
  return [
    'format' => $this
      ->t('Format ID.'),
    'name' => $this
      ->t('The name of the format.'),
    'cache' => $this
      ->t('Whether the format is cacheable.'),
    'roles' => $this
      ->t('The role IDs which can use the format.'),
    'filters' => $this
      ->t('The filters configured for the format.'),
  ];
}