function forum_uri
Same name in other branches
- 7.x modules/forum/forum.module \forum_uri()
- 8.9.x core/modules/forum/forum.module \forum_uri()
- 10 core/modules/forum/forum.module \forum_uri()
- 11.x core/modules/forum/forum.module \forum_uri()
Entity URI callback used in forum_entity_bundle_info_alter().
1 call to forum_uri()
- template_preprocess_forum_list in core/
modules/ forum/ forum.module - Prepares variables for forum list templates.
1 string reference to 'forum_uri'
- forum_entity_bundle_info_alter in core/
modules/ forum/ forum.module - Implements hook_entity_bundle_info_alter().
File
-
core/
modules/ forum/ forum.module, line 133
Code
function forum_uri($forum) {
return Url::fromRoute('forum.page', [
'taxonomy_term' => $forum->id(),
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.