[Views integration] Replace dots in Views field names with double underscore
CiviCRM may return field names with a .
in their names, which causes a Drupal\Core\Config\ConfigValueException: field_name.with_dot key contains a dot which is not supported. in Drupal\Core\Config\ConfigBase->validateKeys() (Line 211 in /var/www/html/d8civiremote/web/core/lib/Drupal/Core/Config/ConfigBase.php).
when trying to save the View.
It should be enough to replace the .
when fetching fields in \Drupal\cmrf_views\CMRFViews::getFields
- I chose a double underscore (__
).
Edited by jensschuppe