function ViewMode::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/node/src/Plugin/migrate/source/d6/ViewMode.php, line 61

Class

ViewMode
Drupal 6 view mode source from database.

Namespace

Drupal\node\Plugin\migrate\source\d6

Code

public function fields() {
  return [
    'display_settings' => $this->t('Serialize data with display settings.'),
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.