public function isSatisfiedBy($contentInfo): bool
    {
        $versions = $this->contentService->loadVersions($contentInfo);

        foreach ($versions as $checkedVersionInfo) {
            if ($checkedVersionInfo->isDraft()
                && $checkedVersionInfo->versionNo > $contentInfo->currentVersionNo
                && $checkedVersionInfo->initialLanguageCode === $this->languageCode
            ) {
                return true;
            }
        }

        return false;
    }
public function isSatisfiedBy($contentInfo): bool
    {
        $versions = $this->contentService->loadVersions($contentInfo);

        foreach ($versions as $checkedVersionInfo) {
            if ($checkedVersionInfo->isDraft()
                && $checkedVersionInfo->versionNo > $contentInfo->currentVersionNo
                && $checkedVersionInfo->initialLanguageCode === $this->languageCode
            ) {
                return true;
            }
        }

        return false;
    }
public function isSatisfiedBy ( $ contentInfo ) : bool { $ versions = $ this -> contentService -> loadVersions ( $ contentInfo ) ; foreach ( $ versions as $ checkedVersionInfo ) { if ( $ checkedVersionInfo -> isDraft ( ) && $ checkedVersionInfo -> versionNo > $ contentInfo -> currentVersionNo && $ checkedVersionInfo -> initialLanguageCode === $ this -> languageCode ) { return true ; } } return false ; }
Checks if Content has draft conflict.

@param \eZ\Publish\API\Repository\Values\Content\ContentInfo $contentInfo

@return bool

@throws UnauthorizedException
Checks if Content has draft conflict .