function MigrateProcess::__construct
Constructs a migrate process plugin attribute object.
Parameters
string $id: A unique identifier for the process plugin.
bool $handle_multiples: (optional) Whether the plugin handles multiples itself. Typically these plugins will expect an array as input and iterate over it themselves, changing the whole array. For example the 'sub_process' and the 'flatten' plugins. If the plugin only needs to change a single value, then it can skip setting this attribute and let \Drupal\migrate\MigrateExecutable::processRow() handle the iteration.
class-string|null $deriver: (optional) The deriver class.
Overrides Plugin::__construct
File
-
core/
modules/ migrate/ src/ Attribute/ MigrateProcess.php, line 43
Class
- MigrateProcess
- Defines a MigrateProcess attribute.
Namespace
Drupal\migrate\AttributeCode
public function __construct(string $id, bool $handle_multiples = FALSE, ?string $deriver = NULL) {
}