You are here

public function FieldInstancePerViewMode::fields in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/field/src/Plugin/migrate/source/d6/FieldInstancePerViewMode.php \Drupal\field\Plugin\migrate\source\d6\FieldInstancePerViewMode::fields()
  2. 8 core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerViewMode.php \Drupal\field\Plugin\migrate\source\d7\FieldInstancePerViewMode::fields()
Same name and namespace in other branches
  1. 8.0 core/modules/field/src/Plugin/migrate/source/d6/FieldInstancePerViewMode.php \Drupal\field\Plugin\migrate\source\d6\FieldInstancePerViewMode::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/field/src/Plugin/migrate/source/d6/FieldInstancePerViewMode.php, line 81
Contains \Drupal\field\Plugin\migrate\source\d6\FieldInstancePerViewMode.

Class

FieldInstancePerViewMode
The field instance per view mode source class.

Namespace

Drupal\field\Plugin\migrate\source\d6

Code

public function fields() {
  return array(
    'field_name' => $this
      ->t('The machine name of field.'),
    'type_name' => $this
      ->t('Content type where this field is used.'),
    'weight' => $this
      ->t('Weight.'),
    'label' => $this
      ->t('A name to show.'),
    'widget_type' => $this
      ->t('Widget type.'),
    'widget_settings' => $this
      ->t('Serialize data with widget settings.'),
    'display_settings' => $this
      ->t('Serialize data with display settings.'),
    'description' => $this
      ->t('A description of field.'),
    'widget_module' => $this
      ->t('Module that implements widget.'),
    'widget_active' => $this
      ->t('Status of widget'),
  );
}