How can I replace the hyphens in front of child terms with something else?
-
02-03-2021 - |
해결책
Looks like there is no easy way to override them, they are added by TermSelection::getReferenceableEntities
in core/modules/taxonomy/src/Plugin/EntityReferenceSelection/TermSelection.php:73
:
$options[$vocabulary->id()][$term->id()] = str_repeat('-', $term->depth) . Html::escape($this->entityRepository->getTranslationFromContext($term)->label());
If you decide to edit it, I suggest using a Composer patch system afterwards if you are using Composer.
제휴하지 않습니다 drupal.stackexchange