protected function getEmptyField(FieldDefinition $fieldDefinition, $languageCode)
    {
        $fieldType = $this->fieldTypeRegistry->getFieldType($fieldDefinition->fieldType);

        return new Field(
            array(
                'fieldDefinitionId' => $fieldDefinition->id,
                'type' => $fieldDefinition->fieldType,
                'value' => $fieldType->getEmptyValue(),
                'languageCode' => $languageCode,
            )
        );
    }
protected function getEmptyField(FieldDefinition $fieldDefinition, $languageCode)
    {
        $fieldType = $this->fieldTypeRegistry->getFieldType($fieldDefinition->fieldType);

        return new Field(
            array(
                'fieldDefinitionId' => $fieldDefinition->id,
                'type' => $fieldDefinition->fieldType,
                'value' => $fieldType->getEmptyValue(),
                'languageCode' => $languageCode,
            )
        );
    }
protected function getEmptyField ( FieldDefinition $ fieldDefinition , $ languageCode ) { $ fieldType = $ this -> fieldTypeRegistry -> getFieldType ( $ fieldDefinition -> fieldType ) ; return new Field ( array ( 'fieldDefinitionId' => $ fieldDefinition -> id , 'type' => $ fieldDefinition -> fieldType , 'value' => $ fieldType -> getEmptyValue ( ) , 'languageCode' => $ languageCode , ) ) ; }
Returns empty Field object for given field definition and language code.

Uses FieldType to create empty field value.

@param \eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDefinition
@param string $languageCode

@return \eZ\Publish\SPI\Persistence\Content\Field
Returns empty Field object for given field definition and language code .