Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / config_translation / src / Plugin / Menu / ContextualLink / ConfigTranslationContextualLink.php
index 63145a5d3b328bfbbcdda996d66e11a5416aa67d..fff82f0c7299c3f4294b6be4ad1fdc50761de083 100644 (file)
@@ -5,6 +5,7 @@ namespace Drupal\config_translation\Plugin\Menu\ContextualLink;
 use Drupal\Component\Utility\Unicode;
 use Drupal\Core\Menu\ContextualLinkDefault;
 use Drupal\Core\StringTranslation\StringTranslationTrait;
+use Symfony\Component\HttpFoundation\Request;
 
 /**
  * Defines a contextual link plugin with a dynamic title.
@@ -22,7 +23,7 @@ class ConfigTranslationContextualLink extends ContextualLinkDefault {
   /**
    * {@inheritdoc}
    */
-  public function getTitle() {
+  public function getTitle(Request $request = NULL) {
     // Use the custom 'config_translation_plugin_id' plugin definition key to
     // retrieve the title. We need to retrieve a runtime title (as opposed to
     // storing the title on the plugin definition for the link) because it