Version 1
[yaffs-website] / web / core / modules / system / tests / modules / menu_test / src / Plugin / Menu / LocalTask / TestTasksSettingsSub1.php
diff --git a/web/core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php b/web/core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php
new file mode 100644 (file)
index 0000000..7ba7548
--- /dev/null
@@ -0,0 +1,26 @@
+<?php
+
+namespace Drupal\menu_test\Plugin\Menu\LocalTask;
+
+use Drupal\Core\Menu\LocalTaskDefault;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
+
+class TestTasksSettingsSub1 extends LocalTaskDefault {
+
+  use StringTranslationTrait;
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getTitle() {
+    return $this->t('Dynamic title for @class', ['@class' => 'TestTasksSettingsSub1']);
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getCacheTags() {
+    return ['kittens:ragdoll'];
+  }
+
+}