function MigrateSourceInterface::fields

Same name in other branches
  1. 8.9.x core/modules/migrate/src/Plugin/MigrateSourceInterface.php \Drupal\migrate\Plugin\MigrateSourceInterface::fields()
  2. 10 core/modules/migrate/src/Plugin/MigrateSourceInterface.php \Drupal\migrate\Plugin\MigrateSourceInterface::fields()
  3. 11.x core/modules/migrate/src/Plugin/MigrateSourceInterface.php \Drupal\migrate\Plugin\MigrateSourceInterface::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.

89 methods override MigrateSourceInterface::fields()
Action::fields in core/modules/system/src/Plugin/migrate/source/Action.php
Returns available fields on the source.
AggregatorFeed::fields in core/modules/aggregator/src/Plugin/migrate/source/AggregatorFeed.php
Returns available fields on the source.
AggregatorItem::fields in core/modules/aggregator/src/Plugin/migrate/source/AggregatorItem.php
Returns available fields on the source.
Block::fields in core/modules/block/src/Plugin/migrate/source/Block.php
Returns available fields on the source.
BlockCustom::fields in core/modules/block_content/src/Plugin/migrate/source/d7/BlockCustom.php
Returns available fields on the source.

... See full list

File

core/modules/migrate/src/Plugin/MigrateSourceInterface.php, line 32

Class

MigrateSourceInterface
Defines an interface for migrate sources.

Namespace

Drupal\migrate\Plugin

Code

public function fields();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.