Problem/Motivation
On my website I've custom module. In this module I've tried to add custom breadcrumbs for taxonomy term page. So I created custom class (that implements BreadcrumbBuilderInterface interface) and add it in services.yml file. After that I was confused because I was not be able to view my changes on taxonomy term page. The problem was in my breadcrumb service priority. I found, that default taxonomy_term.breadcrumb service has priority 1002, so you should use priority more then this number to override default breadcrumbs.
services:
taxonomy_term.breadcrumb:
class: Drupal\taxonomy\TermBreadcrumbBuilder
arguments: ['@entity.manager']
tags:
- { name: breadcrumb_builder, priority: 1002 }Can someone explain why exectly this number used as priority for default service?
Proposed resolution
Proposed resolution is to change this priority to number that has more meaning.
Comments
Comment #2
goodmood commentedComment #3
dawehnerSee https://www.drupal.org/node/2061911#comment-7923337
At that point though this high number would not be needed any longer.
Comment #14
tintoChanging the category of this issue to support request, because I wouldn't classify it as an active Drupal core bug. If anyone disagrees, please feel free to undo my changes.
Comment #17
prashant.cAre we looking for something like this feature as a part fo Drupal core https://www.drupal.org/project/taxonomy_manager?
Comment #19
quietone commentedThis was answered in #3.
The Drupal Core issue queue is not the ideal place for support requests. The 'support request' option is there for filing support issues for contributed modules and themes. There are several support options listed on our support page (Community > Support at the top of Drupal.org) and there is Drupal Slack. You may get better replies in one of those places.