Made a custom module in which I implemented a class that would subscribe to an event with a method
couldn't find out how to find the name of the event I was supposed to subscribe to in the return statement (you know, something like ConfigEvents::SAVE or something) so I gave up on this
Hi
I'm using the address field in Drupal 9 for Country only.
In a module I process the form values after submit and send them off to a CRM.
I decode the values first with $arr = json_decode($values, true);
Simple fields are fine and I get the values OK using $arr['email'] for example.
How can I access the selected country value?
All Ive got so far is "Array"