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
Namespace
Drupal\graphql\PluginCode
public function addTypeManager(TypePluginManagerInterface $pluginManager, $id) {
$pieces = explode('.', $id);
$key = end($pieces);
$this->pluginManagers[$key] = $pluginManager;
}