Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / ImageToolkit / ImageToolkitOperationManager.php
index 5fc434ca1e39ac5fd9afe814a34aff3576912470..3eeb7867e4ceaee3cca39a895bc20f2010fcc1e2 100644 (file)
@@ -7,7 +7,7 @@ use Drupal\Core\Extension\ModuleHandlerInterface;
 use Drupal\Core\Plugin\DefaultPluginManager;
 use Drupal\Component\Plugin\Exception\PluginNotFoundException;
 use Drupal\Component\Plugin\Factory\DefaultFactory;
-use Drupal\Component\Utility\SafeMarkup;
+use Drupal\Component\Render\FormattableMarkup;
 use Psr\Log\LoggerInterface;
 
 /**
@@ -91,7 +91,7 @@ class ImageToolkitOperationManager extends DefaultPluginManager implements Image
         return $this->getToolkitOperationPluginId($base_toolkit, $operation);
       }
 
-      $message = SafeMarkup::format("No image operation plugin for '@toolkit' toolkit and '@operation' operation.", ['@toolkit' => $toolkit_id, '@operation' => $operation]);
+      $message = new FormattableMarkup("No image operation plugin for '@toolkit' toolkit and '@operation' operation.", ['@toolkit' => $toolkit_id, '@operation' => $operation]);
       throw new PluginNotFoundException($toolkit_id . '.' . $operation, $message);
     }
     else {