You are here

public function Accordionblock::fields in Accordion Blocks 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/Accordionblock.php, line 99

Class

Accordionblock
Accordion block source from database

Namespace

Drupal\accordion_blocks\Plugin\migrate\source

Code

public function fields() {
  $fields = [
    'id' => $this
      ->t('id of the accordion widget'),
    'title' => $this
      ->t('Title of the accordion widget'),
    'content' => $this
      ->t('serailized content used in the accordion widget'),
  ];
}