protected function createField($id, $versionNo, $languageCode)
    {
        $field = new Field();

        $field->id = $id;
        $field->fieldDefinitionId = $this->fieldDefinition->id;
        $field->type = $this->fieldDefinition->fieldType;
        $field->value = clone $this->fieldDefinition->defaultValue;
        $field->versionNo = $versionNo;
        $field->languageCode = $languageCode;

        return $field;
    }
protected function createField($id, $versionNo, $languageCode)
    {
        $field = new Field();

        $field->id = $id;
        $field->fieldDefinitionId = $this->fieldDefinition->id;
        $field->type = $this->fieldDefinition->fieldType;
        $field->value = clone $this->fieldDefinition->defaultValue;
        $field->versionNo = $versionNo;
        $field->languageCode = $languageCode;

        return $field;
    }
protected function createField ( $ id , $ versionNo , $ languageCode ) { $ field = new Field ( ) ; $ field -> id = $ id ; $ field -> fieldDefinitionId = $ this -> fieldDefinition -> id ; $ field -> type = $ this -> fieldDefinition -> fieldType ; $ field -> value = clone $ this -> fieldDefinition -> defaultValue ; $ field -> versionNo = $ versionNo ; $ field -> languageCode = $ languageCode ; return $ field ; }
Creates new Field value object, setting given parameters and default value
for a field definition the action is constructed for.

@param null|int $id
@param int $versionNo
@param string $languageCode

@return \eZ\Publish\SPI\Persistence\Content\Field
Creates new Field value object setting given parameters and default value for a field definition the action is constructed for .