method isImage documentation in bbn\Appui\Medias

Returns true if the given path is an image

function(string $path) { if (is_string($path) && $this->fs->isFile($path)) { $content_type = mime_content_type($path); if (strpos($content_type, 'image/') === 0) { return true; } } return false; }

Returns true if the given path is an image BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.