public static function ContentEntityDeriver::create in Workbench Moderation to Content Moderation 8.2
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
1 method overrides ContentEntityDeriver::create()
- ModerationDeriver::create in src/
Plugin/ Deriver/ ModerationDeriver.php - Creates a new class instance.
File
- src/
Plugin/ migrate/ source/ ContentEntityDeriver.php, line 34
Class
Namespace
Drupal\wbm2cm\Plugin\migrate\sourceCode
public static function create(ContainerInterface $container, $base_plugin_id) {
return new static($container
->get('entity_type.manager'));
}