function SystemLocalTasksTest::getSystemAdminRoutes
Same name in other branches
- 9 core/modules/system/tests/src/Unit/Menu/SystemLocalTasksTest.php \Drupal\Tests\system\Unit\Menu\SystemLocalTasksTest::getSystemAdminRoutes()
- 8.9.x core/modules/system/tests/src/Unit/Menu/SystemLocalTasksTest.php \Drupal\Tests\system\Unit\Menu\SystemLocalTasksTest::getSystemAdminRoutes()
- 10 core/modules/system/tests/src/Unit/Menu/SystemLocalTasksTest.php \Drupal\Tests\system\Unit\Menu\SystemLocalTasksTest::getSystemAdminRoutes()
Provides a list of routes to test.
File
-
core/
modules/ system/ tests/ src/ Unit/ Menu/ SystemLocalTasksTest.php, line 79
Class
- SystemLocalTasksTest
- Tests existence of system local tasks.
Namespace
Drupal\Tests\system\Unit\MenuCode
public static function getSystemAdminRoutes() {
return [
[
'system.admin_content',
[
[
'system.admin_content',
],
],
],
[
'system.theme_settings_theme',
[
[
'system.themes_page',
'system.theme_settings',
],
[
'system.theme_settings_global',
'system.theme_settings_theme:olivero',
],
],
],
[
'entity.foo.version_history',
[
[
'entity.version_history:foo.version_history',
],
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.