You are here

private function MockGraphQLPluginTrait::getBasePluginId in GraphQL 8.3

Parameters

$pluginId:

Return value

mixed

1 call to MockGraphQLPluginTrait::getBasePluginId()
MockGraphQLPluginTrait::injectTypeSystemPluginManagers in tests/src/Traits/MockGraphQLPluginTrait.php
Register the mocked plugin managers during container build.

File

tests/src/Traits/MockGraphQLPluginTrait.php, line 202

Class

MockGraphQLPluginTrait
Trait for mocking GraphQL type system plugins.

Namespace

Drupal\Tests\graphql\Traits

Code

private function getBasePluginId($pluginId) {
  return strpos($pluginId, ':') ? explode(':', $pluginId)[0] : $pluginId;
}