function MigrateSource::__construct

Same name and namespace in other branches
  1. 11.x core/modules/migrate/src/Attribute/MigrateSource.php \Drupal\migrate\Attribute\MigrateSource::__construct()

Constructs a migrate source plugin attribute object.

Parameters

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

bool $requirements_met: (optional) Whether requirements are met. Defaults to true. The source plugin itself determines how the value is used.

mixed $minimum_version: (optional) Specifies the minimum version of the source provider. This can be any type, and the source plugin itself determines how it is used.

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

Overrides Plugin::__construct

File

core/modules/migrate/src/Attribute/MigrateSource.php, line 43

Class

MigrateSource
Defines a MigrateSource attribute.

Namespace

Drupal\migrate\Attribute

Code

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

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