You are here

public function ParagraphsType::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/ParagraphsType.php, line 61

Class

ParagraphsType
Paragraphs Type source plugin.

Namespace

Drupal\paragraphs\Plugin\migrate\source\d7

Code

public function fields() {
  return [
    'bundle' => $this
      ->t('Paragraph type machine name'),
    'name' => $this
      ->t('Paragraph type label'),
    'description' => $this
      ->t('Paragraph type description'),
  ];
}