You are here

protected function ComposableSchema::getExtensions in GraphQL 8.4

Return value

\Drupal\graphql\Plugin\SchemaExtensionPluginInterface[]

Overrides SdlSchemaPluginBase::getExtensions

File

src/Plugin/GraphQL/Schema/ComposableSchema.php, line 31

Class

ComposableSchema
Plugin annotation @Schema( id = "composable", name = "Composable schema" )

Namespace

Drupal\graphql\Plugin\GraphQL\Schema

Code

protected function getExtensions() {
  return array_map(function ($id) {
    return $this->extensionManager
      ->createInstance($id);
  }, array_filter($this
    ->getConfiguration()['extensions']));
}