FluentDOM\Loaders::supports PHP Méthode

supports() public méthode

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