Xpressengine\Storage\Storage::has PHP Method

has() public method

has
public has ( string $fileableId, File $file ) : boolean
$fileableId string fileable identifier
$file File file instance
return boolean
    public function has($fileableId, File $file)
    {
        return $file->getConnection()->table($file->getFileableTable())->where('fileId', $file->getKey())->where('fileableId', $fileableId)->first() === null ? false : true;
    }