public function getParentsForBreadcrumbs(
    $entity,
        &$parents = []
    )
    {
        array_push($parents, $entity);
        if ($entity->parent !== null) {
            $this->getParentsForBreadcrumbs($entity->parent, $parents);
        }
        return array_reverse($parents);
    }