function UnmetDependenciesException::formatConfigObjectList
Same name in other branches
- 9 core/lib/Drupal/Core/Config/UnmetDependenciesException.php \Drupal\Core\Config\UnmetDependenciesException::formatConfigObjectList()
- 8.9.x core/lib/Drupal/Core/Config/UnmetDependenciesException.php \Drupal\Core\Config\UnmetDependenciesException::formatConfigObjectList()
- 10 core/lib/Drupal/Core/Config/UnmetDependenciesException.php \Drupal\Core\Config\UnmetDependenciesException::formatConfigObjectList()
Formats a list of configuration objects.
Parameters
array $config_objects: A list of configuration object names that have unmet dependencies.
Return value
string The imploded config_objects, formatted in an easy to read string.
2 calls to UnmetDependenciesException::formatConfigObjectList()
- UnmetDependenciesException::create in core/
lib/ Drupal/ Core/ Config/ UnmetDependenciesException.php - Creates an exception for an extension and a list of configuration objects.
- UnmetDependenciesException::getTranslatedMessage in core/
lib/ Drupal/ Core/ Config/ UnmetDependenciesException.php - Gets a translated message from the exception.
File
-
core/
lib/ Drupal/ Core/ Config/ UnmetDependenciesException.php, line 113
Class
- UnmetDependenciesException
- An exception thrown if configuration has unmet dependencies.
Namespace
Drupal\Core\ConfigCode
protected static function formatConfigObjectList(array $config_objects) {
$list = [];
foreach ($config_objects as $config_object => $missing_dependencies) {
$list[] = $config_object . ' (' . implode(', ', $missing_dependencies) . ')';
}
return implode(', ', $list);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.