public static function PluggableSchemaDeriver::create in GraphQL 8.3
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
- src/
Plugin/ Deriver/ PluggableSchemaDeriver.php, line 57
Class
Namespace
Drupal\graphql\Plugin\DeriverCode
public static function create(ContainerInterface $container, $basePluginId) {
return new static($basePluginId, $container
->get('plugin.manager.graphql.field'), $container
->get('plugin.manager.graphql.mutation'), $container
->get('plugin.manager.graphql.subscription'), $container
->get('graphql.type_manager_aggregator'));
}