You are here

public function SchemaPluginBase::getTypes in GraphQL 8.3

Retrieves all type instances from the schema.

Return value

array The list of type instances contained within the schema.

Overrides SchemaBuilderInterface::getTypes

1 call to SchemaPluginBase::getTypes()
SchemaPluginBase::getSchema in src/Plugin/GraphQL/Schemas/SchemaPluginBase.php
Retrieves the schema.

File

src/Plugin/GraphQL/Schemas/SchemaPluginBase.php, line 369

Class

SchemaPluginBase

Namespace

Drupal\graphql\Plugin\GraphQL\Schemas

Code

public function getTypes() {
  return array_map(function ($name) {
    return $this
      ->getType($name);
  }, array_keys($this->pluginDefinition['type_map']));
}