function MigrateFieldPluginManagerTestClass::__construct
Same name in other branches
- 9 core/modules/migrate_drupal/tests/src/Unit/MigrateFieldPluginManagerTest.php \Drupal\Tests\migrate_drupal\Unit\MigrateFieldPluginManagerTestClass::__construct()
- 8.9.x core/modules/migrate_drupal/tests/src/Unit/MigrateFieldPluginManagerTest.php \Drupal\Tests\migrate_drupal\Unit\MigrateFieldPluginManagerTestClass::__construct()
- 10 core/modules/migrate_drupal/tests/src/Unit/MigrateFieldPluginManagerTest.php \Drupal\Tests\migrate_drupal\Unit\MigrateFieldPluginManagerTestClass::__construct()
Constructs a MigratePluginManagerTestClass object.
Parameters
string $type: The type of the plugin: row, source, process, destination, entity_field, id_map.
\Traversable $namespaces: An object that implements \Traversable which contains the root paths keyed by the corresponding namespace to look for plugin implementations.
\Drupal\Core\Cache\CacheBackendInterface $cache_backend: Cache backend instance to use.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to invoke the alter hook with.
string $annotation: The annotation class name.
\Drupal\Core\Plugin\Discovery\AnnotatedClassDiscovery $discovery: A mock plugin discovery object for the test class to use.
Overrides MigratePluginManager::__construct
File
-
core/
modules/ migrate_drupal/ tests/ src/ Unit/ MigrateFieldPluginManagerTest.php, line 221
Class
- MigrateFieldPluginManagerTestClass
- Class to test MigrateFieldPluginManager.
Namespace
Drupal\Tests\migrate_drupal\UnitCode
public function __construct($type, \Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, $annotation, AnnotatedClassDiscovery $discovery) {
parent::__construct($type, $namespaces, $cache_backend, $module_handler, $annotation);
$this->discovery = $discovery;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.