You are here

TestTasksSettingsSub1.php in Drupal 10

File

core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php
View source
<?php

namespace Drupal\menu_test\Plugin\Menu\LocalTask;

use Drupal\Core\Menu\LocalTaskDefault;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Symfony\Component\HttpFoundation\Request;
class TestTasksSettingsSub1 extends LocalTaskDefault {
  use StringTranslationTrait;

  /**
   * {@inheritdoc}
   */
  public function getTitle(Request $request = NULL) {
    return $this
      ->t('Dynamic title for @class', [
      '@class' => 'TestTasksSettingsSub1',
    ]);
  }

  /**
   * {@inheritdoc}
   */
  public function getCacheTags() {
    return [
      'kittens:ragdoll',
    ];
  }

}

Classes