protected function findFiles($searchTerm, $filter, $sortBy)
    {
        $filter = $filter !== self::FILTER_EVERYTHING ? $filter : null;

        return MediaLibrary::instance()->findFiles($searchTerm, $sortBy, $filter);
    }
protected function findFiles($searchTerm, $filter, $sortBy)
    {
        $filter = $filter !== self::FILTER_EVERYTHING ? $filter : null;

        return MediaLibrary::instance()->findFiles($searchTerm, $sortBy, $filter);
    }
protected function findFiles ( $ searchTerm , $ filter , $ sortBy ) { $ filter = $ filter !== self :: FILTER_EVERYTHING ? $ filter : null ; return MediaLibrary :: instance ( ) -> findFiles ( $ searchTerm , $ sortBy , $ filter ) ; }
Finds files from within the media library based on supplied criteria,
returns an array of MediaLibraryItem objects.
@param string $searchTerm
@param string $filter
@param string $sortBy
@param array[System\Classes\MediaLibraryItem]
Finds files from within the media library based on supplied criteria returns an array of MediaLibraryItem objects .