function MigrateDestinationInterface::fields

Same name in other branches
  1. 8.9.x core/modules/migrate/src/Plugin/MigrateDestinationInterface.php \Drupal\migrate\Plugin\MigrateDestinationInterface::fields()
  2. 10 core/modules/migrate/src/Plugin/MigrateDestinationInterface.php \Drupal\migrate\Plugin\MigrateDestinationInterface::fields()
  3. 11.x core/modules/migrate/src/Plugin/MigrateDestinationInterface.php \Drupal\migrate\Plugin\MigrateDestinationInterface::fields()

Returns an array of destination fields.

Derived classes must implement fields(), returning a list of available destination fields.

Return value

array

  • Keys: machine names of the fields
  • Values: Human-friendly descriptions of the fields.
11 methods override MigrateDestinationInterface::fields()
BlockedIp::fields in core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php
Returns an array of destination fields.
Color::fields in core/modules/color/src/Plugin/migrate/destination/Color.php
Returns an array of destination fields.
ComponentEntityDisplayBase::fields in core/modules/migrate/src/Plugin/migrate/destination/ComponentEntityDisplayBase.php
Returns an array of destination fields.
Config::fields in core/modules/migrate/src/Plugin/migrate/destination/Config.php
Returns an array of destination fields.
DummyDestination::fields in core/modules/migrate/tests/modules/migrate_events_test/src/Plugin/migrate/destination/DummyDestination.php
Returns an array of destination fields.

... See full list

File

core/modules/migrate/src/Plugin/MigrateDestinationInterface.php, line 90

Class

MigrateDestinationInterface
Defines an interface for Migration Destination classes.

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.