Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / system / tests / modules / menu_test / src / Plugin / Menu / LocalAction / TestLocalAction5.php
index 0bd7fc38755a04fcd4eeecc83390b8d138cef372..e960e26613050f5b8536a9a929679dbddddd41a1 100644 (file)
@@ -3,6 +3,7 @@
 namespace Drupal\menu_test\Plugin\Menu\LocalAction;
 
 use Drupal\Core\Menu\LocalActionDefault;
+use Symfony\Component\HttpFoundation\Request;
 
 /**
  * Defines a local action plugin with a dynamic title from user input.
@@ -12,7 +13,7 @@ class TestLocalAction5 extends LocalActionDefault {
   /**
    * {@inheritdoc}
    */
-  public function getTitle() {
+  public function getTitle(Request $request = NULL) {
     return "<script>alert('Welcome to the jungle!')</script>";
   }