function TypedConfigManager::replaceName

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Config/TypedConfigManager.php \Drupal\Core\Config\TypedConfigManager::replaceName()
  2. 8.9.x core/lib/Drupal/Core/Config/TypedConfigManager.php \Drupal\Core\Config\TypedConfigManager::replaceName()

Replaces dynamic type expressions in configuration type.

Parameters

string $name: Configuration type, potentially with expressions in square brackets.f

array $data: Configuration data for the element.

Return value

string Configuration type name with all expressions resolved.

Deprecated

in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Config\Schema\TypeResolver::resolveDynamicTypeName::resolveDynamicTypeName() instead.

See also

https://www.drupal.org/node/3408266

File

core/lib/Drupal/Core/Config/TypedConfigManager.php, line 409

Class

TypedConfigManager
Manages config schema type plugins.

Namespace

Drupal\Core\Config

Code

protected function replaceName($name, $data) {
  @trigger_error(__METHOD__ . '() is deprecated in drupal:10.3.0 and is removed from drupal:11.0.0. Use \\Drupal\\Core\\Config\\Schema\\TypeResolver::resolveDynamicTypeName() instead. See https://www.drupal.org/node/3408266', E_USER_DEPRECATED);
  return TypeResolver::resolveDynamicTypeName($name, $data);
}

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