eZ\Publish\Core\Persistence\Legacy\Content\Mapper::extractFieldFromRow PHP Method

extractFieldFromRow() protected method

Extracts a Field from $row.
protected extractFieldFromRow ( array $row ) : eZ\Publish\SPI\Persistence\Content\Field
$row array
return eZ\Publish\SPI\Persistence\Content\Field
    protected function extractFieldFromRow(array $row)
    {
        $field = new Field();
        $field->id = (int) $row['ezcontentobject_attribute_id'];
        $field->fieldDefinitionId = (int) $row['ezcontentobject_attribute_contentclassattribute_id'];
        $field->type = $row['ezcontentobject_attribute_data_type_string'];
        $field->value = $this->extractFieldValueFromRow($row, $field->type);
        $field->languageCode = $row['ezcontentobject_attribute_language_code'];
        $field->versionNo = (int) $row['ezcontentobject_attribute_version'];
        return $field;
    }