You are here

public static function ThunderSchema::create in Thunder 6.2.x

File

modules/thunder_gqls/src/Plugin/GraphQL/Schema/ThunderSchema.php, line 43

Class

ThunderSchema
Tha base schema for Thunder composable schema.

Namespace

Drupal\thunder_gqls\Plugin\GraphQL\Schema

Code

public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
  $schema = parent::create($container, $configuration, $plugin_id, $plugin_definition);
  $schema
    ->setDataProducerManager($container
    ->get('plugin.manager.graphql.data_producer'));
  return $schema;
}