You are here

public function ImageCachePreset::fields in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/image/src/Plugin/migrate/source/d6/ImageCachePreset.php \Drupal\image\Plugin\migrate\source\d6\ImageCachePreset::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/image/src/Plugin/migrate/source/d6/ImageCachePreset.php, line 35
Contains \Drupal\image\Plugin\migrate\source\d6\ImageCachePreset.

Class

ImageCachePreset
Drupal 6 imagecache presets source from database.

Namespace

Drupal\image\Plugin\migrate\source\d6

Code

public function fields() {
  $fields = [
    'presetid' => $this
      ->t('Preset ID'),
    'presetname' => $this
      ->t('Preset Name'),
  ];
  return $fields;
}