function TypedConfigManager::resolveDynamicTypeName

Resolves a dynamic type name.

Parameters

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

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() instead.

See also

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

File

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

Class

TypedConfigManager
Manages config schema type plugins.

Namespace

Drupal\Core\Config

Code

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

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