/** * * @param type $contentId * @param type $identifier * @return array * Array * ( * [isMultiple] => 1 * [options] => Array * ( * [0] => Catégorie 1 * [1] => Catégorie 2 * ) * ) */ public function getCategorie($contentId, $identifier) { $contentTypeService = $this->repository->getContentTypeService(); $serviceInfo = $this->loadService('Content')->loadContentInfo($contentId); /* @var $contentImage \eZ\Publish\Core\Repository\Values\ContentType\FieldDefinition */ $fieldDefinitionCategorie = $contentTypeService->loadContentType($serviceInfo->contentTypeId)->getFieldDefinition("category"); $fieldSettings = $fieldDefinitionCategorie->getFieldSettings(); return $fieldSettings['options']; }