Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Config / Development / ConfigSchemaChecker.php
index ba69001f4d7e2ab9c5f68eb72a8e70585f3b72e6..0ca1004a5e3d1919db17a7b3b1ae06600a8f754b 100644 (file)
@@ -3,7 +3,7 @@
 namespace Drupal\Core\Config\Development;
 
 use Drupal\Component\Utility\Crypt;
-use Drupal\Component\Utility\SafeMarkup;
+use Drupal\Component\Render\FormattableMarkup;
 use Drupal\Core\Config\ConfigCrudEvent;
 use Drupal\Core\Config\ConfigEvents;
 use Drupal\Core\Config\Schema\SchemaCheckTrait;
@@ -90,7 +90,7 @@ class ConfigSchemaChecker implements EventSubscriberInterface {
       elseif (is_array($errors)) {
         $text_errors = [];
         foreach ($errors as $key => $error) {
-          $text_errors[] = SafeMarkup::format('@key @error', ['@key' => $key, '@error' => $error]);
+          $text_errors[] = new FormattableMarkup('@key @error', ['@key' => $key, '@error' => $error]);
         }
         throw new SchemaIncompleteException("Schema errors for $name with the following errors: " . implode(', ', $text_errors));
       }