Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LanguageConfigCollectionNameTrait.php

function LanguageConfigCollectionNameTrait::createConfigCollectionName

Creates a configuration collection name based on a language code.

Parameters

string $langcode: The language code.

Return value

string The configuration collection name for a language code.

3 calls to LanguageConfigCollectionNameTrait::createConfigCollectionName()
LanguageConfigFactoryOverride::addCollections in core/modules/language/src/Config/LanguageConfigFactoryOverride.php
Reacts to the ConfigCollectionEvents::COLLECTION_INFO event.
LanguageConfigFactoryOverride::getStorage in core/modules/language/src/Config/LanguageConfigFactoryOverride.php
LanguageConfigFactoryOverride::installLanguageOverrides in core/modules/language/src/Config/LanguageConfigFactoryOverride.php

File

core/modules/language/src/Config/LanguageConfigCollectionNameTrait.php, line 19

Class

LanguageConfigCollectionNameTrait
Provides a common trait for working with language override collection names.

Namespace

Drupal\language\Config

Code

protected function createConfigCollectionName($langcode) {
    return 'language.' . $langcode;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal