diff --git a/core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php b/core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php index f2621a8..cb511d7 100644 --- a/core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php +++ b/core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php @@ -7,8 +7,6 @@ namespace Drupal\Component\Plugin\Exception; -use Drupal\Component\Utility\String; - /** * Plugin exception class to be thrown when a plugin ID could not be found. */ @@ -24,7 +22,7 @@ class PluginNotFoundException extends PluginException { */ public function __construct($plugin_id, $message = '', $code = 0, \Exception $previous = NULL) { if (empty($message)) { - $message = String::format("Plugin ID '@instance' was not found.", array('@instance' => $plugin_id)); + $message = sprintf("Plugin ID '%s' was not found.", $plugin_id); } parent::__construct($message, $code, $previous); }