eZ\Publish\Core\FieldType\Url\Type::fromPersistenceValue PHP Method

fromPersistenceValue() public method

This method builds a field type value from the $data and $externalData properties.
public fromPersistenceValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue ) : Value
$fieldValue eZ\Publish\SPI\Persistence\Content\FieldValue
return Value
    public function fromPersistenceValue(FieldValue $fieldValue)
    {
        if ($fieldValue->externalData === null) {
            return $this->getEmptyValue();
        }
        return new Value($fieldValue->externalData, $fieldValue->data['text']);
    }