You are here

public function ParagraphsItem::fields in Paragraphs 8

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

src/Plugin/migrate/source/d7/ParagraphsItem.php, line 121

Class

ParagraphsItem
Paragraphs Item source plugin.

Namespace

Drupal\paragraphs\Plugin\migrate\source\d7

Code

public function fields() {
  $fields = [
    'item_id' => $this
      ->t('The paragraph_item id'),
    'revision_id' => $this
      ->t('The paragraph_item revision id'),
    'bundle' => $this
      ->t('The paragraph bundle'),
    'field_name' => $this
      ->t('The paragraph field_name'),
  ];
  return $fields;
}