Mercurial > hg > isophonics-drupal-site
comparison core/modules/migrate/src/Plugin/MigrateProcessInterface.php @ 16:c2387f117808
Routine composer update
author | Chris Cannam |
---|---|
date | Tue, 10 Jul 2018 15:07:59 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
15:e200cb7efeb3 | 16:c2387f117808 |
---|---|
7 use Drupal\migrate\Row; | 7 use Drupal\migrate\Row; |
8 | 8 |
9 /** | 9 /** |
10 * An interface for migrate process plugins. | 10 * An interface for migrate process plugins. |
11 * | 11 * |
12 * A process plugin can use any number of methods instead of (but not in | 12 * A process plugin will typically implement the transform() method to perform |
13 * addition to) transform with the same arguments and then the plugin | 13 * its work. However, it is possible instead for a process plugin to use any |
14 * configuration needs to provide the name of the method to be called via the | 14 * number of methods, thus offering different alternatives ways of processing. |
15 * "method" key. See \Drupal\migrate\Plugin\migrate\process\SkipOnEmpty and | 15 * In this case, the transform() method should not be implemented, and the |
16 * migrate.migration.d6_field_instance_widget_settings.yml for examples. | 16 * plugin configuration must provide the name of the method to be called via the |
17 * "method" key. Each method must have the same signature as transform(). | |
18 * The base class \Drupal\migrate\ProcessPluginBase takes care of implementing | |
19 * transform() and calling the configured method. See | |
20 * \Drupal\migrate\Plugin\migrate\process\SkipOnEmpty and | |
21 * d6_field_instance_widget_settings.yml for examples. | |
17 * | 22 * |
18 * @see \Drupal\migrate\Plugin\MigratePluginManager | 23 * @see \Drupal\migrate\Plugin\MigratePluginManager |
19 * @see \Drupal\migrate\ProcessPluginBase | 24 * @see \Drupal\migrate\ProcessPluginBase |
20 * @see \Drupal\migrate\Annotation\MigrateProcessPlugin | 25 * @see \Drupal\migrate\Annotation\MigrateProcessPlugin |
21 * @see plugin_api | 26 * @see plugin_api |