FluentDOM\Loaders::supports PHP Method

supports() public method

Validate if the list contains a loader that supports the given content type
public supports ( string $contentType ) : boolean
$contentType string
return boolean
    public function supports($contentType)
    {
        foreach ($this as $loader) {
            /**
             * @var Loadable $loader
             */
            if ($loader->supports($contentType)) {
                return TRUE;
            }
        }
        return FALSE;
    }