Classes/Cache/UriFrontend.php
public function isValidEntryIdentifier($identifier)
    {
        if (false === GeneralUtility::isValidUrl($identifier)) {
            return false;
        }
        $urlParts = \parse_url($identifier);
        $required = ['host', 'path', 'scheme'];
        foreach ($required as $item) {
            if (!isset($urlParts[$item]) || \mb_strlen($urlParts[$item]) <= 0) {
                return false;
            }
        }

        return true;
    }
public function isValidEntryIdentifier($identifier)
    {
        if (false === GeneralUtility::isValidUrl($identifier)) {
            return false;
        }
        $urlParts = \parse_url($identifier);
        $required = ['host', 'path', 'scheme'];
        foreach ($required as $item) {
            if (!isset($urlParts[$item]) || \mb_strlen($urlParts[$item]) <= 0) {
                return false;
            }
        }

        return true;
    }
public function isValidEntryIdentifier ( $ identifier ) { if ( false === GeneralUtility :: isValidUrl ( $ identifier ) ) { return false ; } $ urlParts = \ parse_url ( $ identifier ) ; $ required = [ 'host' , 'path' , 'scheme' ] ; foreach ( $ required as $ item ) { if ( ! isset ( $ urlParts [ $ item ] ) || \ mb_strlen ( $ urlParts [ $ item ] ) <= 0 ) { return false ; } } return true ; }
Check if the identifier is a valid URI incl. host and path.

@param string $identifier

@return bool
Check if the identifier is a valid URI incl . host and path .