function uc_catalog_path in Ubercart 8.4
Same name and namespace in other branches
- 5 uc_catalog/uc_catalog.module \uc_catalog_path()
- 6.2 uc_catalog/uc_catalog.module \uc_catalog_path()
- 7.3 uc_catalog/uc_catalog.module \uc_catalog_path()
Creates paths to the catalog from taxonomy term.
1 call to uc_catalog_path()
- _uc_catalog_navigation in uc_catalog/
uc_catalog.module - Emulates Drupal's menu system, but based around the catalog taxonomy.
File
- uc_catalog/
uc_catalog.module, line 263 - Ubercart Catalog module.
Code
function uc_catalog_path($term) {
return Url::fromRoute('view.uc_catalog.page_1')
->toString() . '/' . $term
->getTid();
}