function uc_catalog_preprocess_block in Ubercart 8.4
Same name and namespace in other branches
- 6.2 uc_catalog/uc_catalog.module \uc_catalog_preprocess_block()
- 7.3 uc_catalog/uc_catalog.module \uc_catalog_preprocess_block()
Preprocesses the catalog block output.
File
- uc_catalog/
uc_catalog.module, line 89 - Ubercart Catalog module.
Code
function uc_catalog_preprocess_block(&$variables) {
if ($variables['plugin_id'] == 'uc_catalog_block' && $variables['label'] && $variables['configuration']['link_title']) {
$variables['label'] = Link::createFromRoute($variables['label'], 'view.uc_catalog.page_1');
}
}