eZ\Publish\Core\FieldType\TextLine\Type::fromHash PHP Метод

fromHash() публичный Метод

Converts an $hash to the Value defined by the field type.
public fromHash ( mixed $hash ) : Value
$hash mixed
Результат Value $value
    public function fromHash($hash)
    {
        if ($hash === null) {
            return $this->getEmptyValue();
        }
        return new Value($hash);
    }