function FieldInstancePerViewMode::fields

Overrides FieldInstance::fields

File

core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerViewMode.php, line 43

Class

FieldInstancePerViewMode
Drupal 7 field instance per view mode source class.

Namespace

Drupal\field\Plugin\migrate\source\d7

Code

public function fields() {
  return array_merge(parent::fields(), [
    'view_mode' => $this->t('The original machine name of the view mode.'),
    'formatter' => $this->t('The formatter settings.'),
  ]);
}

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