Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MigrateProcess.php

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\Attribute

Code

public function __construct(string $id, bool $handle_multiples = FALSE, ?string $deriver = NULL) {
}
RSS feed
Powered by Drupal