public function isAsset(Content $content): bool
    {
        if ($this->contentTypeId === null) {
            $contentType = $this->contentTypeService->loadContentTypeByIdentifier(
                $this->mappings['content_type_identifier']
            );

            $this->contentTypeId = $contentType->id;
        }

        return $content->contentInfo->contentTypeId === $this->contentTypeId;
    }
public function isAsset(Content $content): bool
    {
        if ($this->contentTypeId === null) {
            $contentType = $this->contentTypeService->loadContentTypeByIdentifier(
                $this->mappings['content_type_identifier']
            );

            $this->contentTypeId = $contentType->id;
        }

        return $content->contentInfo->contentTypeId === $this->contentTypeId;
    }
public function isAsset ( Content $ content ) : bool { if ( $ this -> contentTypeId === null ) { $ contentType = $ this -> contentTypeService -> loadContentTypeByIdentifier ( $ this -> mappings [ 'content_type_identifier' ] ) ; $ this -> contentTypeId = $ contentType -> id ; } return $ content -> contentInfo -> contentTypeId === $ this -> contentTypeId ; }
Returns TRUE if content is an Image Asset.

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

@return bool

@throws \eZ\Publish\API\Repository\Exceptions\NotFoundException
Returns TRUE if content is an Image Asset .