function DesignToken::getConfigScopeName

Prepares a scope for config storage.

Transform dot into DOT_CONVERSION_CHARACTER.

Parameters

string $scope: The scope to convert.

Return value

string The converted scope.

1 call to DesignToken::getConfigScopeName()
DesignTokenEntityTest::testGetConfigScopeName in core/tests/Drupal/Tests/Core/Theme/DesignToken/DesignTokenEntityTest.php
Tests getConfigScopeName.

File

core/lib/Drupal/Core/Theme/Entity/DesignToken.php, line 171

Class

DesignToken
Configuration entity.

Namespace

Drupal\Core\Theme\Entity

Code

public static function getConfigScopeName(string $scope) : string {
  return \str_replace('.', self::DOT_CONVERSION_CHARACTER, $scope);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.