namespace Drupal\Core\Config;
-use Drupal\Component\Utility\SafeMarkup;
+use Drupal\Component\Render\FormattableMarkup;
/**
* An exception thrown if configuration with the same name already exists.
* @return \Drupal\Core\Config\PreExistingConfigException
*/
public static function create($extension, array $config_objects) {
- $message = SafeMarkup::format('Configuration objects (@config_names) provided by @extension already exist in active configuration',
+ $message = new FormattableMarkup('Configuration objects (@config_names) provided by @extension already exist in active configuration',
[
'@config_names' => implode(', ', static::flattenConfigObjects($config_objects)),
- '@extension' => $extension
+ '@extension' => $extension,
]
);
$e = new static($message);