bundle/Core/Persistence/ContentTypeUtils.php
public function getInfoCollectorFields($contentId)
    {
        $fields = [];

        $content = $this->contentService->loadContent($contentId);

        $contentType = $this->contentTypeService
            ->loadContentType($content->contentInfo->contentTypeId);

        foreach ($contentType->getFieldDefinitions() as $fieldDefinition) {

            if ($fieldDefinition->isInfoCollector) {
                $fields[$fieldDefinition->id] = $fieldDefinition->getName();
            }
        }

        return $fields;
    }
public function getInfoCollectorFields($contentId)
    {
        $fields = [];

        $content = $this->contentService->loadContent($contentId);

        $contentType = $this->contentTypeService
            ->loadContentType($content->contentInfo->contentTypeId);

        foreach ($contentType->getFieldDefinitions() as $fieldDefinition) {

            if ($fieldDefinition->isInfoCollector) {
                $fields[$fieldDefinition->id] = $fieldDefinition->getName();
            }
        }

        return $fields;
    }
public function getInfoCollectorFields ( $ contentId ) { $ fields = [ ] ; $ content = $ this -> contentService -> loadContent ( $ contentId ) ; $ contentType = $ this -> contentTypeService -> loadContentType ( $ content -> contentInfo -> contentTypeId ) ; foreach ( $ contentType -> getFieldDefinitions ( ) as $ fieldDefinition ) { if ( $ fieldDefinition -> isInfoCollector ) { $ fields [ $ fieldDefinition -> id ] = $ fieldDefinition -> getName ( ) ; } } return $ fields ; }
Returns fields that are marked as info collectors

@param int $contentId

@return array

@throws \eZ\Publish\API\Repository\Exceptions\NotFoundException
@throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException
Returns fields that are marked as info collectors