public function getDocumentFolderBySlug($slug)
    {
        if ($slug === '/') {
            $path = $slug;
        } else {
            $path = '/' . $slug;
        }

        return $this->repository->getContentRepository()->getDocumentByPath($this->repository, $path, 'unpublished');
    }
public function getDocumentFolderBySlug($slug)
    {
        if ($slug === '/') {
            $path = $slug;
        } else {
            $path = '/' . $slug;
        }

        return $this->repository->getContentRepository()->getDocumentByPath($this->repository, $path, 'unpublished');
    }
public function getDocumentFolderBySlug ( $ slug ) { if ( $ slug === '/' ) { $ path = $ slug ; } else { $ path = '/' . $ slug ; } return $ this -> repository -> getContentRepository ( ) -> getDocumentByPath ( $ this -> repository , $ path , 'unpublished' ) ; }
Retrieve a folder by its compound slug

@param $slug

@return mixed
@throws \Exception
Retrieve a folder by its compound slug