public function findAllTreeItems($publishedOnly = false)
    {
        $filter = $publishedOnly ? ['published' => true] : [];
        return $this->repository->findBy($filter, ['lft' => 'ASC']);
    }
public function findAllTreeItems($publishedOnly = false)
    {
        $filter = $publishedOnly ? ['published' => true] : [];
        return $this->repository->findBy($filter, ['lft' => 'ASC']);
    }
public function findAllTreeItems ( $ publishedOnly = false ) { $ filter = $ publishedOnly ? [ 'published' => true ] : [ ] ; return $ this -> repository -> findBy ( $ filter , [ 'lft' => 'ASC' ] ) ; }
Returns all items in tree structure
@param type $publishedOnly returns only published items
@return type
Returns all items in tree structure