eZ\Publish\Core\FieldType\Author\Type::fromHash PHP Method

fromHash() public method

Converts an $hash to the Value defined by the field type.
public fromHash ( mixed $hash ) : Value
$hash mixed
return Value $value
    public function fromHash($hash)
    {
        return new Value(array_map(function ($author) {
            return new Author($author);
        }, $hash));
    }