function MigrateDestination::__construct

Same name in other branches
  1. 10 core/modules/migrate/src/Attribute/MigrateDestination.php \Drupal\migrate\Attribute\MigrateDestination::__construct()

Constructs a migrate destination plugin attribute object.

Parameters

string $id: A unique identifier for the destination plugin.

bool $requirements_met: (optional) Whether requirements are met.

string|null $destination_module: (optional) Identifies the system handling the data the destination plugin will write. The destination plugin itself determines how the value is used. For example, Migrate's destination plugins expect destination_module to be the name of a module that must be installed on the destination.

class-string|null $deriver: (optional) The deriver class.

Overrides Plugin::__construct

File

core/modules/migrate/src/Attribute/MigrateDestination.php, line 44

Class

MigrateDestination
Defines a MigrateDestination attribute.

Namespace

Drupal\migrate\Attribute

Code

public function __construct(string $id, bool $requirements_met = TRUE, ?string $destination_module = NULL, ?string $deriver = NULL) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.