main/core/Entity/Facet/FieldFacet.php
public function getRootFieldFacetChoices()
    {
        $roots = [];

        if (!empty($this->fieldFacetChoices)) {
            foreach ($this->fieldFacetChoices as $choice) {
                if (empty($choice->getParent())) {
                    $roots[] = $choice;
                }
            }
        }

        return $roots;
    }
public function getRootFieldFacetChoices()
    {
        $roots = [];

        if (!empty($this->fieldFacetChoices)) {
            foreach ($this->fieldFacetChoices as $choice) {
                if (empty($choice->getParent())) {
                    $roots[] = $choice;
                }
            }
        }

        return $roots;
    }
public function getRootFieldFacetChoices ( ) { $ roots = [ ] ; if ( ! empty ( $ this -> fieldFacetChoices ) ) { foreach ( $ this -> fieldFacetChoices as $ choice ) { if ( empty ( $ choice -> getParent ( ) ) ) { $ roots [ ] = $ choice ; } } } return $ roots ; }
Get root choices.

@return FieldFacetChoice[]
Get root choices .