You are here

public static function SdlSchemaExtensionPluginBase::create in GraphQL 8.4

@codeCoverageIgnore

Overrides ContainerFactoryPluginInterface::create

File

src/Plugin/GraphQL/SchemaExtension/SdlSchemaExtensionPluginBase.php, line 29

Class

SdlSchemaExtensionPluginBase
Base class that can be used for schema extension plugins.

Namespace

Drupal\graphql\Plugin\GraphQL\SchemaExtension

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  return new static($configuration, $plugin_id, $plugin_definition, $container
    ->get('module_handler'));
}