original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Returns whether the index will only show the top level parents.
  
  @return bool
docstring_tokens: Returns whether the index will only show the top level parents .