Settings and geocoder field_type problem
vargvinter - 1 month ago
I want to create settings for my custom module. I can't put geocoder field type.
return [ 'center' => [ 'type' => 'anomaly.field_type.geocoder', 'required' => true, 'config' => [ "zoom" => 13, "height" => 400 ], ], ];
There is problem on settings update:
Array to string conversion (SQL: insert into `default_settings_settings` (`key`, `value`, `created_at`, `created_by_id`, `sort_order`) values (acme.module.foobar::center, new york, 2017-12-12 13:28:18, 1, 25))
ryanthompson - 1 month ago
The Geocoder FT uses multiple columns and so it's not supported by the Settings / Preferences / Configuration module yet. You could use a variables type concept though.
I have an idea on how to support these fields but haven't had a chance to work on it / flesh it out yet.