Problem/Motivation

The google API key (https://git.drupalcode.org/project/corporate_lite/-/blob/8.x-1.x-dev/con...)

Is not configurable through an UI.

Steps to reproduce

N/A

Proposed resolution

Make a settings form that allows a site owner to set and change the API key.

Remaining tasks

MR

User interface changes

Config form

API changes

N/A

Data model changes

N/A

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bramdriesen created an issue. See original summary.

lavanyatalwar’s picture

Assigned: Unassigned » lavanyatalwar

lavanyatalwar’s picture

StatusFileSize
new280.9 KB

Hello @bramdriesen,
I have added the required field to configure the Google Maps API key in the theme-settings.php file located at web/themes/custom/corporate_lite-3512058/theme-settings.php. The configuration is being properly saved and fetched.
I have attached a screenshot for your reference. Please have a look and let me know if any changes are required.
Thanks!

lavanyatalwar’s picture

Assigned: lavanyatalwar » Unassigned
Status: Active » Needs review
juandhr’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new43.98 KB
new48.07 KB

I have tested the newly added field "Google Maps API Key" in the theme configuration form and confirmed that:

  • The field is properly displayed in the UI.
  • The value is stored correctly in the configuration.
  • The field functions as expected.

Based on these checks, I am updating the status to Reviewed & tested by the community.