TestTasksSettingsSub1.php

Same filename in other branches
  1. 8.9.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php
  2. 10 core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php
  3. 11.x core/modules/system/tests/modules/menu_test/src/Plugin/Menu/LocalTask/TestTasksSettingsSub1.php

Namespace

Drupal\menu_test\Plugin\Menu\LocalTask

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

Title Deprecated Summary
TestTasksSettingsSub1

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.