Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I want to display the values from a multi-select field. I am able to display the key values ( 'cell_phone' instead of 'cell phone', for example. I'm also getting a warning on the cat_type : " Undefined array key "cat_type"has not been defined." I thought I defined it.
This is the code.
What is causing the error and how can I get the values instead of the keys?
I do not see a way to search this forum for a topic that may answer my question. Am I missing something? Do I really have to go page by page to try and find a possible relevant question?
I would like to override a contributed modules menu title to something that better describes what it does in my use case. I do not want to use a hook. How do I do this in Drupal 10?
I have the following issue:
I've created a module with a controller, and I've created another module with another controller. I've imported that controller there, but when I try to instantiate it, it shows the error: 'Instantiated class Drupal\custom_module\Controller\getItems not found.'
I need an Array of the query-parameters. However, when I tried to get all the query parameters via the request-object, it returned two parameters, that didn't belong there: "destination" and "_exception_statuscode". Is there a way to get the original query from the request object?