M1\Vars\Resource\ResourceProvider::getSupportedFilesInDir PHP Method

getSupportedFilesInDir() private method

Returns the supported files using the extensions from the loaders in the entity which is a directory
See also: M1\Vars\Loader\LoaderProvider::getExtensions() M1\Vars\Loader\LoaderProvider::getExtensions()
See also: M1\Vars\Loader\LoaderProvider::makeLoaders() M1\Vars\Loader\LoaderProvider::makeLoaders()
private getSupportedFilesInDir ( string $entity ) : array | boolean
$entity string The resource entity
return array | boolean Returns the supported files or false if no files were found
    private function getSupportedFilesInDir($entity)
    {
        $dir_loader = new DirectoryLoader($entity, $this->recursive);
        $dir_loader->setSupports($this->vars->loader->getExtensions());
        $dir_loader->load();
        return $dir_loader->getContent();
    }