Neos.Media/Classes/Domain/ValueObject/Configuration/VariantPreset.php
public function matchesMediaType(string $mediaType): bool
    {
        foreach ($this->mediaTypePatterns as $mediaTypePattern) {
            if ($mediaTypePattern->matches($mediaType)) {
                return true;
            }
        }
        return false;
    }
public function matchesMediaType(string $mediaType): bool
    {
        foreach ($this->mediaTypePatterns as $mediaTypePattern) {
            if ($mediaTypePattern->matches($mediaType)) {
                return true;
            }
        }
        return false;
    }
public function matchesMediaType ( string $ mediaType ) : bool { foreach ( $ this -> mediaTypePatterns as $ mediaTypePattern ) { if ( $ mediaTypePattern -> matches ( $ mediaType ) ) { return true ; } } return false ; }
Checks if any of the defined media type patterns matches the given concrete media type.

@param string $mediaType
@return bool
Checks if any of the defined media type patterns matches the given concrete media type .