You are here

public function Field::fields in Zircon Profile 8

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

Class

Field
Drupal 6 field source from database.

Namespace

Drupal\field\Plugin\migrate\source\d6

Code

public function fields() {
  return array(
    'field_name' => $this
      ->t('Field name'),
    'type' => $this
      ->t('Type (text, integer, ....)'),
    'widget_type' => $this
      ->t('An instance-specific widget type'),
    'global_settings' => $this
      ->t('Global settings. Shared with every field instance.'),
    'required' => $this
      ->t('Required'),
    'multiple' => $this
      ->t('Multiple'),
    'db_storage' => $this
      ->t('DB storage'),
    'module' => $this
      ->t('Module'),
    'db_columns' => $this
      ->t('DB Columns'),
    'active' => $this
      ->t('Active'),
    'locked' => $this
      ->t('Locked'),
  );
}