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 / TestLocalActionWithConfig.php
index 54a2f42246fb2a25288accb094ebd36ac88bba38..4f56977e869021b74a90e62465ddcaa8eee25d5b 100644 (file)
@@ -6,6 +6,7 @@ use Drupal\Core\Config\Config;
 use Drupal\Core\Menu\LocalActionDefault;
 use Drupal\Core\Routing\RouteProviderInterface;
 use Symfony\Component\DependencyInjection\ContainerInterface;
+use Symfony\Component\HttpFoundation\Request;
 
 /**
  * Defines a test local action plugin class.
@@ -20,7 +21,7 @@ class TestLocalActionWithConfig extends LocalActionDefault {
   /**
    * {@inheritdoc}
    */
-  public function getTitle() {
+  public function getTitle(Request $request = NULL) {
     return $this->config->get('title');
   }