function TypedConfigManager::resolveExpression
Resolves a dynamic expression.
Parameters
string $expression: Expression to be resolved.
array|\Drupal\Core\TypedData\TypedDataInterface $data: Configuration data for the element.
Return value
string The value the expression resolves to, or the given expression if it cannot be resolved.
Deprecated
in drupal:10.3.0 and is removed from drupal:11.0.0. Use \Drupal\Core\Config\Schema\TypeResolver::resolveExpression() instead.
See also
https://www.drupal.org/node/3413264
File
-
core/
lib/ Drupal/ Core/ Config/ TypedConfigManager.php, line 517
Class
- TypedConfigManager
- Manages config schema type plugins.
Namespace
Drupal\Core\ConfigCode
protected function resolveExpression(string $expression, 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::resolveExpression($expression, $data);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.