コード例 #1
0
 /**
  * MigrateSourcePluginManager constructor.
  *
  * @param string $type
  *   The type of the plugin: row, source, process, destination, entity_field,
  *   id_map.
  * @param \Traversable $namespaces
  *   An object that implements \Traversable which contains the root paths
  *   keyed by the corresponding namespace to look for plugin implementations.
  * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend
  *   Cache backend instance to use.
  * @param \Drupal\Core\Extension\ModuleHandlerInterface $module_handler
  *   The module handler to invoke the alter hook with.
  */
 public function __construct($type, \Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler)
 {
     parent::__construct($type, $namespaces, $cache_backend, $module_handler, 'Drupal\\migrate\\Annotation\\MigrateSource');
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function __construct($type, \Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, EntityManagerInterface $entity_manager, $annotation = 'Drupal\\migrate\\Annotation\\MigrateDestination')
 {
     parent::__construct($type, $namespaces, $cache_backend, $module_handler, $annotation);
     $this->entityManager = $entity_manager;
 }
コード例 #3
0
 /**
  * {@inheritdoc}
  */
 public function __construct($type, \Traversable $namespaces, CacheBackendInterface $cache_backend, ModuleHandlerInterface $module_handler, $annotation = 'Drupal\\Component\\Annotation\\PluginID')
 {
     parent::__construct($type, $namespaces, $cache_backend, $module_handler, $annotation);
     $this->factory = new ContainerFactory($this, 'Drupal\\migrate_drupal\\Plugin\\MigrateLoadInterface');
 }