Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By neha.gangwar on
Hi Everyone,
I need a help to alter the views page breadcrumbs. I want to add the title and remove some links from views pages.
Comments
To change breadcrumb, see -
To change breadcrumb, see - hook_system_breadcrumb_alter() or breadcrumb manager service. To add new, preprocess hook is there
Thanks!
I have used BreadcrumbBuilderInterface interface and created custom module as per my requirements.
Hey Neha,
Hey Neha,
Would you like to share your code ?
That would be helpful to us.
Vaibhav Jain
@vaibhav - Just create
@vaibhav - Just create 'breadcrumb_builder' tagged service and you have applies() and build()
Hi Vaibhav,
As Rohit mentioned, I have used the same method. I have taken reference from here http://drupal.stackexchange.com/questions/151133/how-do-you-implement-a-...