You are here

protected function ThunderSchemaExtensionPluginBase::mapBundleToSchemaName in Thunder 6.2.x

Takes the bundle name and returns the schema name.

Parameters

string $bundleName: The bundle name.

Return value

string Returns the mapped bundle name.

3 calls to ThunderSchemaExtensionPluginBase::mapBundleToSchemaName()
ThunderMediaSchemaExtension::resolveMediaTypes in modules/thunder_gqls/src/Plugin/GraphQL/SchemaExtension/ThunderMediaSchemaExtension.php
Resolves media types.
ThunderPagesSchemaExtension::resolvePageTypes in modules/thunder_gqls/src/Plugin/GraphQL/SchemaExtension/ThunderPagesSchemaExtension.php
Resolves page types.
ThunderParagraphsSchemaExtension::resolveParagraphTypes in modules/thunder_gqls/src/Plugin/GraphQL/SchemaExtension/ThunderParagraphsSchemaExtension.php
Resolves page types.

File

modules/thunder_gqls/src/Plugin/GraphQL/SchemaExtension/ThunderSchemaExtensionPluginBase.php, line 83

Class

ThunderSchemaExtensionPluginBase
The base class for Thunder schema extension plugins.

Namespace

Drupal\thunder_gqls\Plugin\GraphQL\SchemaExtension

Code

protected function mapBundleToSchemaName(string $bundleName) {
  return str_replace('_', '', ucwords($bundleName, '_'));
}