Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. D6NodeDeriver.php

function D6NodeDeriver::create

Overrides ContainerDeriverInterface::create

File

core/modules/node/src/Plugin/migrate/D6NodeDeriver.php, line 61

Class

D6NodeDeriver
Deriver for Drupal 6 node and node revision migrations based on node types.

Namespace

Drupal\node\Plugin\migrate

Code

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'));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal