diff --git a/core/modules/system/tests/modules/common_test/lib/Drupal/common_test/Controller/CommonTestTextController.php b/core/modules/system/tests/modules/common_test/lib/Drupal/common_test/Controller/CommonTestTextController.php index b9dfedb..a28b836 100644 --- a/core/modules/system/tests/modules/common_test/lib/Drupal/common_test/Controller/CommonTestTextController.php +++ b/core/modules/system/tests/modules/common_test/lib/Drupal/common_test/Controller/CommonTestTextController.php @@ -6,6 +6,7 @@ namespace Drupal\common_test\Controller; +use Drupal\Component\Utility\String; use Symfony\Component\HttpFoundation\Response; /** @@ -15,10 +16,14 @@ class CommonTestTextController { /** * Prints a destination query parameter. + * + * @return Response + * A new Response object containing a string with the destination query + * parameter. */ public function destination() { $destination = drupal_get_destination(); - $output = "The destination: " . check_plain($destination['destination']); + $output = "The destination: " . String::checkPlain($destination['destination']); return new Response($output); }