function ShortcutLocalTasksTest::getShortcutPageRoutes
Same name in other branches
- 9 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()
- 11.x 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',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.