You are here

public static function D7CourseDeriver::create in Course 3.x

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

modules/course_migrate/src/Plugin/migrate/D7CourseDeriver.php, line 54

Class

D7CourseDeriver
Deriver for Drupal 7 Course migrations based on Course types.

Namespace

Drupal\course_migrate\Plugin\migrate

Code

public static function create(ContainerInterface $container, $base_plugin_id) {
  return new static($base_plugin_id, $container
    ->get('migrate_drupal.field_discovery'));
}