You are here

public function ShortcutLocalTasksTest::getShortcutPageRoutes in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/shortcut/tests/src/Unit/Menu/ShortcutLocalTasksTest.php \Drupal\Tests\shortcut\Unit\Menu\ShortcutLocalTasksTest::getShortcutPageRoutes()
  2. 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 37

Class

ShortcutLocalTasksTest
Tests existence of shortcut local tasks.

Namespace

Drupal\Tests\shortcut\Unit\Menu

Code

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