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/d7/Field.php \Drupal\field\Plugin\migrate\source\d7\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/d7/Field.php, line 41
Contains \Drupal\field\Plugin\migrate\source\d7\Field.

Class

Field
Drupal 7 field source from database.

Namespace

Drupal\field\Plugin\migrate\source\d7

Code

public function fields() {
  return array(
    'field_name' => $this
      ->t('The name of this field.'),
    'type' => $this
      ->t('The type of this field.'),
    'module' => $this
      ->t('The module that implements the field type.'),
    'storage' => $this
      ->t('The field storage.'),
    'locked' => $this
      ->t('Locked'),
    'cardinality' => $this
      ->t('Cardinality'),
    'translatable' => $this
      ->t('Translatable'),
  );
}