' > ', ]; public function __construct(TranslatableStringHelper $translatableStringHelper) { $this->translatableStringHelper = $translatableStringHelper; } public function supports($entity, array $options): bool { return $entity instanceof SocialIssueRender; } public function renderString($socialIssue, array $options): string { /** @var $socialIssue SocialIssue */ $options = \array_merge(self::DEFAULT_ARGS, $options); $str = $this->translatableStringHelper->localize($socialIssue->getTitle()); while ($socialIssue->hasParent()) { $socialIssue = $socialIssue->getParent(); $str .= $options[self::SEPARATOR_KEY].$this->translatableStringHelper->localize( $socialIssue->getTitle() ); } return $str; } public function renderBox($entity, array $options): string { return "renderBox not implemented for social issue"; } }