eZ\Publish\Core\Repository\Values\ContentType\ContentType::getFieldDefinitions PHP Method

getFieldDefinitions() public method

This method returns the content type field definitions from this type.
public getFieldDefinitions ( ) : eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]
return eZ\Publish\API\Repository\Values\ContentType\FieldDefinition[]
    public function getFieldDefinitions()
    {
        return $this->fieldDefinitions;
    }

Usage Example

 /**
  * Permite deninir los fieldDefinitions del ContenType
  * @param array $type_fields Lista de fieldDefinitions a procesar
  * @return void
  */
 private function setContentTypeStructFields($type_fields)
 {
     $fieldDefinitions = $this->contentType->getFieldDefinitions();
     $this->createUpdateRemoveFieldDefinitions($type_fields, $fieldDefinitions);
 }