Client/YooChooseNotifier.php
private function isContentTypeExcluded(Content $content)
    {
        $contentType = $this->repository->sudo(function () use ($content) {
            $contentType = $this->contentTypeService->loadContentType($content->contentInfo->contentTypeId);

            return $contentType;
        });

        return !in_array($contentType->identifier, $this->options['included-content-types']);
    }
private function isContentTypeExcluded(Content $content)
    {
        $contentType = $this->repository->sudo(function () use ($content) {
            $contentType = $this->contentTypeService->loadContentType($content->contentInfo->contentTypeId);

            return $contentType;
        });

        return !in_array($contentType->identifier, $this->options['included-content-types']);
    }
private function isContentTypeExcluded ( Content $ content ) { $ contentType = $ this -> repository -> sudo ( function ( ) use ( $ content ) { $ contentType = $ this -> contentTypeService -> loadContentType ( $ content -> contentInfo -> contentTypeId ) ; return $ contentType ; } ) ; return ! in_array ( $ contentType -> identifier , $ this -> options [ 'included-content-types' ] ) ; }
Checks if content is excluded from supported content types.

@param \eZ\Publish\API\Repository\Values\Content\Content $content

@return bool
Checks if content is excluded from supported content types .