protected function showsTopParentsOnly()
    {
        $relation = $this->getModelInformation()->list->default_top_relation;

        // If the default is to restrict to top-level only,
        // or the reverse with a user-initiated reversal (relation = false):
        // Restrict the query to top level.

        return $relation && false !== $this->listParentRelation;
    }
protected function showsTopParentsOnly()
    {
        $relation = $this->getModelInformation()->list->default_top_relation;

        // If the default is to restrict to top-level only,
        // or the reverse with a user-initiated reversal (relation = false):
        // Restrict the query to top level.

        return $relation && false !== $this->listParentRelation;
    }
protected function showsTopParentsOnly ( ) { $ relation = $ this -> getModelInformation ( ) -> list -> default_top_relation ; // If the default is to restrict to top-level only, // or the reverse with a user-initiated reversal (relation = false): // Restrict the query to top level. return $ relation && false !== $ this -> listParentRelation ; }
Returns whether the index will only show the top level parents.

@return bool
Returns whether the index will only show the top level parents .