You are here

public function FieldInstance::fields in Drupal 10

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

2 methods override FieldInstance::fields()
FieldInstancePerViewMode::fields in core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerViewMode.php
Returns available fields on the source.
ViewMode::fields in core/modules/field/src/Plugin/migrate/source/d7/ViewMode.php
Returns available fields on the source.

File

core/modules/field/src/Plugin/migrate/source/d7/FieldInstance.php, line 117

Class

FieldInstance
Drupal 7 field instances source from database.

Namespace

Drupal\field\Plugin\migrate\source\d7

Code

public function fields() {
  return [
    'id' => $this
      ->t('The field instance ID.'),
    'field_id' => $this
      ->t('The field ID.'),
    'field_name' => $this
      ->t('The field name.'),
    'entity_type' => $this
      ->t('The entity type.'),
    'bundle' => $this
      ->t('The entity bundle.'),
    'data' => $this
      ->t('The field instance data.'),
    'deleted' => $this
      ->t('Deleted'),
    'type' => $this
      ->t('The field type'),
    'instances' => $this
      ->t('The field instances.'),
    'field_definition' => $this
      ->t('The field definition.'),
  ];
}