On this weblog, we’ll present you easy methods to use the PrestaShop hook Motion Admin Breadcrumb Modifier.
This hook is current within the Admin Controller, particularly on the backside of the `initBreadcrumbs` perform.
It executes earlier than assigning the variable to the template, permitting you to change it at runtime to fit your wants.

Within the picture above, it’s clear that the admin breadcrumb is generated primarily based on the particular controller and tab which might be getting used throughout the PrestaShop admin panel.
Nevertheless, if you wish to modify the default breadcrumb conduct. There’s a hook motion referred to as motion admin breadcrumb modifier.
You may alter and customise the breadcrumbs content material within the PrestaShop admin panel to raised fit your wants.
public perform hookActionAdminBreadcrumbModifier($params) { $tabs = $params['tabs']; $breadcrumb = $params['breadcrumb']; foreach ($params['breadcrumb'] as &$merchandise) { if ($merchandise['name'] == 'Welcome') { $merchandise['name'] = 'PrestaShop House Display'; $merchandise['icon'] = 'icon-House'; $merchandise['href'] = '#'; } if ($merchandise['name'] == 'Dashboard') { $merchandise['name'] = 'PrestaShop House Dashboard'; $merchandise['icon'] = 'icon-dashboard'; $merchandise['href'] = '#'; } } }
Within the above code instance, we have now made a number of modifications to the breadcrumb navigation.
Particularly, we have now modified the breadcrumb textual content from “Welcome to Prestashop House Display”. “Dashboard” to a extra concise and unified “PrestaShop House Dashboard”.
Moreover, we have now up to date the href attributes to make sure that the hyperlinks level to the right areas throughout the utility.

Moreover, we have now additionally up to date the icons. Related to these breadcrumb gadgets to raised mirror their new designations. And enhance the general person expertise.
By utilizing the `hook_action_admin_breadcrumb_modifier`, you can even modify the tab content material accessible within the parameters of the hook perform.
That’s all.
If you’re dealing with any points or doubts within the above course of, please be at liberty to contact us by way of the remark part.
I’d be pleased to assist.
Additionally, you may discover our PrestaShop Growth Providers and a wide range of high quality PrestaShop Modules.
For any doubt contact us at [email protected].
On this weblog, we’ll present you easy methods to use the PrestaShop hook Motion Admin Breadcrumb Modifier.
This hook is current within the Admin Controller, particularly on the backside of the `initBreadcrumbs` perform.
It executes earlier than assigning the variable to the template, permitting you to change it at runtime to fit your wants.

Within the picture above, it’s clear that the admin breadcrumb is generated primarily based on the particular controller and tab which might be getting used throughout the PrestaShop admin panel.
Nevertheless, if you wish to modify the default breadcrumb conduct. There’s a hook motion referred to as motion admin breadcrumb modifier.
You may alter and customise the breadcrumbs content material within the PrestaShop admin panel to raised fit your wants.
public perform hookActionAdminBreadcrumbModifier($params) { $tabs = $params['tabs']; $breadcrumb = $params['breadcrumb']; foreach ($params['breadcrumb'] as &$merchandise) { if ($merchandise['name'] == 'Welcome') { $merchandise['name'] = 'PrestaShop House Display'; $merchandise['icon'] = 'icon-House'; $merchandise['href'] = '#'; } if ($merchandise['name'] == 'Dashboard') { $merchandise['name'] = 'PrestaShop House Dashboard'; $merchandise['icon'] = 'icon-dashboard'; $merchandise['href'] = '#'; } } }
Within the above code instance, we have now made a number of modifications to the breadcrumb navigation.
Particularly, we have now modified the breadcrumb textual content from “Welcome to Prestashop House Display”. “Dashboard” to a extra concise and unified “PrestaShop House Dashboard”.
Moreover, we have now up to date the href attributes to make sure that the hyperlinks level to the right areas throughout the utility.

Moreover, we have now additionally up to date the icons. Related to these breadcrumb gadgets to raised mirror their new designations. And enhance the general person expertise.
By utilizing the `hook_action_admin_breadcrumb_modifier`, you can even modify the tab content material accessible within the parameters of the hook perform.
That’s all.
If you’re dealing with any points or doubts within the above course of, please be at liberty to contact us by way of the remark part.
I’d be pleased to assist.
Additionally, you may discover our PrestaShop Growth Providers and a wide range of high quality PrestaShop Modules.
For any doubt contact us at [email protected].