function _examples_toolbar_routes
Same name in other branches
- 3.x examples.module \_examples_toolbar_routes()
- 4.0.x examples.module \_examples_toolbar_routes()
Get a list of toolbar links to provide.
We've factored this list into a function so that we can use it to test toolbar routes.
This function is for internal use.
Return value
string[] Keyed array of toolbar routes. Keys are the module name which supplies the route.
Related topics
2 calls to _examples_toolbar_routes()
- ExamplesTest::testExampleToolbar in tests/
src/ Functional/ ExamplesTest.php - Verify that the toolbar tab and tray are showing and functioning.
- examples_toolbar in ./
examples.module - Implements hook_toolbar().
File
-
./
examples.module, line 119
Code
function _examples_toolbar_routes() {
return [
'ajax_example' => 'ajax_example.description',
'batch_example' => 'batch_example.form',
'block_example' => 'block_example.description',
'cache_example' => 'cache_example.description',
'config_entity_example' => 'entity.robot.list',
'content_entity_example' => 'entity.content_entity_example_contact.collection',
'cron_example' => 'cron_example.description',
'dbtng_example' => 'dbtng_example.generate_entry_list',
'email_example' => 'email_example.description',
'events_example' => 'events_example.description',
'field_example' => 'field_example.description',
'field_permission_example' => 'field_permission_example.description',
'file_example' => 'file_example.fileapi',
'form_api_example' => 'form_api_example.description',
'hooks_example' => 'hooks_example.description',
'js_example' => 'js_example.info',
'menu_example' => 'examples.menu_example',
'node_type_example' => 'config_node_type_example.description',
'page_example' => 'page_example.description',
'pager_example' => 'pager_example.page',
'phpunit_example' => 'phpunit_example.description',
'plugin_type_example' => 'plugin_type_example.description',
'queue_example' => 'queue_example.form',
'render_example' => 'render_example.description',
'session_example' => 'session_example.form',
'stream_wrapper_example' => 'stream_wrapper_example.description',
'tabledrag_example' => 'tabledrag_example.description',
'tablesort_example' => 'tablesort_example.description',
'testing_example' => 'testing_example.description',
'tour_example' => 'tour_example.description',
];
}