function MigrateSource::__construct
Constructs a migrate source plugin attribute object.
Parameters
string $id: A unique identifier for the source plugin.
string|null $source_module: (optional) Identifies the system providing the data the source plugin will read. The source plugin itself determines how the value is used. For example, Migrate Drupal's source plugins expect source_module to be the name of a module that must be installed and enabled in the source database.
bool $requirements_met: (optional) Whether requirements are met. Defaults to true. The source plugin itself determines how the value is used. For example, Migrate Drupal's source plugins expect source_module to be the name of a module that must be installed and enabled in the source database.
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. For example, Migrate Drupal's source plugins expect this to be an integer representing the minimum installed database schema version of the module specified by source_module.
class-string|null $deriver: (optional) The deriver class.
Overrides Plugin::__construct
See also
\Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase::checkRequirements
File
-
core/
modules/ migrate/ src/ Attribute/ MigrateSource.php, line 62
Class
- MigrateSource
- Defines a MigrateSource attribute.
Namespace
Drupal\migrate\AttributeCode
public function __construct(string $id, ?string $source_module = NULL, bool $requirements_met = TRUE, mixed $minimum_version = NULL, ?string $deriver = NULL) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.