You are here

public function TypePluginManagerAggregator::addTypeManager in GraphQL 8.3

Registers a plugin manager.

Parameters

\Drupal\graphql\Plugin\TypePluginManagerInterface $pluginManager: The plugin manager to register.

$id: The id of the service.

File

src/Plugin/TypePluginManagerAggregator.php, line 22

Class

TypePluginManagerAggregator

Namespace

Drupal\graphql\Plugin

Code

public function addTypeManager(TypePluginManagerInterface $pluginManager, $id) {
  $pieces = explode('.', $id);
  $key = end($pieces);
  $this->pluginManagers[$key] = $pluginManager;
}