eZ\Publish\Core\IO\IOService::removeUriPrefix PHP Method

removeUriPrefix() protected method

protected removeUriPrefix ( mixed $spiBinaryFileId ) : string
$spiBinaryFileId mixed
return string
    protected function removeUriPrefix($spiBinaryFileId)
    {
        if (!isset($this->settings['prefix'])) {
            return $spiBinaryFileId;
        }
        if (strpos($spiBinaryFileId, $this->settings['prefix'] . '/') !== 0) {
            throw new InvalidBinaryPrefixException($spiBinaryFileId);
        }
        return substr($spiBinaryFileId, strlen($this->settings['prefix']) + 1);
    }