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?
Hi team.
I'm using Entityqueue module with Drupal 9, and I am in the process of upgrading to Drupal 10. As part of this upgrade, I have installed the Upgrade Status module. However, I encountered the following issue: Call to static method load() on an unknown class Drupal\entityqueue\Entity\EntitySubqueue.
I want to change the comments order based on a field value but I am unable to change it I have tried so many hooks but none of them are working as I wanted
here are some examples which I tried
function hook_entity_type_alter(array &$entity_types) {
if (isset($entity_types['comment'])) {
// dd($entity_types['comment']);
$entity_types['comment']->setHandlerClass('storage', 'Drupal\test\TestStorage');
}
}
function hook_preprocess_comment(&$vars) {
dump($vars);
}