function ShortcutLocalTasksTest::getShortcutPageRoutes

Same name in other branches
  1. 9 core/modules/shortcut/tests/src/Unit/Menu/ShortcutLocalTasksTest.php \Drupal\Tests\shortcut\Unit\Menu\ShortcutLocalTasksTest::getShortcutPageRoutes()
  2. 8.9.x core/modules/shortcut/tests/src/Unit/Menu/ShortcutLocalTasksTest.php \Drupal\Tests\shortcut\Unit\Menu\ShortcutLocalTasksTest::getShortcutPageRoutes()
  3. 10 core/modules/shortcut/tests/src/Unit/Menu/ShortcutLocalTasksTest.php \Drupal\Tests\shortcut\Unit\Menu\ShortcutLocalTasksTest::getShortcutPageRoutes()

Provides a list of routes to test.

File

core/modules/shortcut/tests/src/Unit/Menu/ShortcutLocalTasksTest.php, line 51

Class

ShortcutLocalTasksTest
Tests existence of shortcut local tasks.

Namespace

Drupal\Tests\shortcut\Unit\Menu

Code

public static function getShortcutPageRoutes() {
    return [
        [
            'entity.user.canonical',
        ],
        [
            'entity.user.edit_form',
        ],
        [
            'shortcut.set_switch',
        ],
    ];
}

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