3 namespace Drupal\migrate\Annotation;
5 use Drupal\Component\Annotation\Plugin;
8 * Defines a migration process plugin annotation object.
10 * Plugin Namespace: Plugin\migrate\process
12 * For a working example, see
13 * \Drupal\migrate\Plugin\migrate\process\DefaultValue
15 * @see \Drupal\migrate\Plugin\MigratePluginManager
16 * @see \Drupal\migrate\Plugin\MigrateProcessInterface
17 * @see \Drupal\migrate\ProcessPluginBase
18 * @see \Drupal\migrate\Annotation\MigrateSource
19 * @see \Drupal\migrate\Annotation\MigrateDestination
26 class MigrateProcessPlugin extends Plugin {
29 * A unique identifier for the process plugin.
36 * Whether the plugin handles multiples itself.
38 * Typically these plugins will expect an array as input and iterate over it
39 * themselves, changing the whole array. For example the 'sub_process' and the
40 * 'flatten' plugins. If the plugin only need to change a single value it
41 * can skip setting this attribute and let
42 * \Drupal\migrate\MigrateExecutable::processRow() handle the iteration.
44 * @var bool (optional)
46 public $handle_multiples = FALSE;