public function ShortcutLocalTasksTest::getShortcutPageRoutes in Drupal 9
Same name and namespace in other branches
- 8 core/modules/shortcut/tests/src/Unit/Menu/ShortcutLocalTasksTest.php \Drupal\Tests\shortcut\Unit\Menu\ShortcutLocalTasksTest::getShortcutPageRoutes()
- 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\MenuCode
public function getShortcutPageRoutes() {
return [
[
'entity.user.canonical',
],
[
'entity.user.edit_form',
],
[
'shortcut.set_switch',
],
];
}