public static function D6NodeDeriver::create in Drupal 9
Same name and namespace in other branches
- 8 core/modules/node/src/Plugin/migrate/D6NodeDeriver.php \Drupal\node\Plugin\migrate\D6NodeDeriver::create()
- 10 core/modules/node/src/Plugin/migrate/D6NodeDeriver.php \Drupal\node\Plugin\migrate\D6NodeDeriver::create()
Creates a new class instance.
Parameters
\Symfony\Component\DependencyInjection\ContainerInterface $container: The container to pull out services used in the fetcher.
string $base_plugin_id: The base plugin ID for the plugin ID.
Return value
static Returns an instance of this fetcher.
Overrides ContainerDeriverInterface::create
File
- core/
modules/ node/ src/ Plugin/ migrate/ D6NodeDeriver.php, line 59
Class
- D6NodeDeriver
- Deriver for Drupal 6 node and node revision migrations based on node types.
Namespace
Drupal\node\Plugin\migrateCode
public static function create(ContainerInterface $container, $base_plugin_id) {
// Translations don't make sense unless we have content_translation.
return new static($base_plugin_id, $container
->get('module_handler')
->moduleExists('content_translation'), $container
->get('migrate_drupal.field_discovery'));
}