function MigrateFieldPluginManager::__construct
Constructs a MigratePluginManager 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 $attribute: (optional) The attribute class name. Defaults to 'Drupal\Component\Plugin\Attribute\PluginID'.
string $annotation: (optional) The annotation class name. Defaults to 'Drupal\Component\Annotation\PluginID'.
Overrides MigratePluginManager::__construct
1 call to MigrateFieldPluginManager::__construct()
- MigrateFieldPluginManagerTestClass::__construct in core/
modules/ migrate_drupal/ tests/ src/ Unit/ MigrateFieldPluginManagerTest.php - Constructs a MigratePluginManagerTestClass object.
1 method overrides MigrateFieldPluginManager::__construct()
- MigrateFieldPluginManagerTestClass::__construct in core/
modules/ migrate_drupal/ tests/ src/ Unit/ MigrateFieldPluginManagerTest.php - Constructs a MigratePluginManagerTestClass object.
File
-
core/
modules/ migrate_drupal/ src/ Plugin/ MigrateFieldPluginManager.php, line 58
Class
- MigrateFieldPluginManager
- Plugin manager for migrate field plugins.
Namespace
Drupal\migrate_drupal\PluginCode
public function __construct($type, \Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, $attribute = PluginID::class, $annotation = 'Drupal\\Component\\Annotation\\PluginID') {
parent::__construct($type, $namespaces, $cache_backend, $module_handler, $attribute, $annotation);
@trigger_error(__CLASS__ . '() is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3533566', E_USER_DEPRECATED);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.