public function MigrateDestinationInterface::fields in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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.
@todo Review the cases where we need the Migration parameter, can we avoid that?
Parameters
\Drupal\migrate\Entity\MigrationInterface $migration: (optional) the migration containing this destination.
Return value
array
- Keys: machine names of the fields
- Values: Human-friendly descriptions of the fields.
9 methods override MigrateDestinationInterface::fields()
- BlockedIP::fields in core/
modules/ ban/ src/ Plugin/ migrate/ destination/ BlockedIp.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.
- Entity::fields in core/
modules/ migrate/ src/ Plugin/ migrate/ destination/ Entity.php - Returns an array of destination fields.
File
- core/
modules/ migrate/ src/ Plugin/ MigrateDestinationInterface.php, line 56 - Contains \Drupal\migrate\Plugin\MigrateDestinationInterface.
Class
- MigrateDestinationInterface
- Destinations are responsible for persisting source data into the destination Drupal.
Namespace
Drupal\migrate\PluginCode
public function fields(MigrationInterface $migration = NULL);