public loadFieldDefinitionList ( mixed $fieldDefinitionListReference ) : |
||
$fieldDefinitionListReference | mixed | |
return |
public function loadFieldDefinitionList($fieldDefinitionListReference)
{
$response = $this->client->request('GET', $fieldDefinitionListReference, new Message(array('Accept' => $this->outputVisitor->getMediaType('FieldDefinitionList'))));
return $this->inputDispatcher->parse($response);
}
/** * This method returns the content type field definitions from this type * * @return \eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[] */ public function getFieldDefinitions() { $fieldDefinitionList = $this->contentTypeService->loadFieldDefinitionList($this->fieldDefinitionListReference); return $fieldDefinitionList->getFieldDefinitions(); }