function Variable::__construct
Same name in this branch
- 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Value/Variable.php \PHPUnit\TextUI\Configuration\Variable::__construct()
- 11.1.x vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Variable.php \PhpParser\Node\Expr\Variable::__construct()
- 11.1.x vendor/symfony/dependency-injection/Variable.php \Symfony\Component\DependencyInjection\Variable::__construct()
Overrides DrupalSqlBase::__construct
File
-
core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ source/ Variable.php, line 102
Class
- Variable
- Drupal 6/7 variable source from database.
Namespace
Drupal\migrate_drupal\Plugin\migrate\sourceCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state, EntityTypeManagerInterface $entity_type_manager) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $migration, $state, $entity_type_manager);
$this->variablesNoRowIfMissing = $this->configuration['variables_no_row_if_missing'] ?? [];
$variables = $this->configuration['variables'] ?? [];
$this->variables = array_unique(array_merge(array_values($variables), array_values($this->variablesNoRowIfMissing)));
}