This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Need help with Javascript deprecation

I'm trying to upgrade Concentration Game to Drupal 10, and I am stuck on this:

The 'game_concentration' library is depending on a deprecated library. The core/jquery.once asset library is deprecated in Drupal 9.3.0 and will be removed in Drupal 10.0.0. Use the core/once library instead. See https://www.drupal.org/node/3158256

This is the deprecated function:

Translation of back-end messages

Does anyone have a good solution to set the translation language for all translations in the back-end in a central place?

Translations work on the front-office, but in cronjobs e.g. translations don't work unless you specify a langcode. Which is ok since there's no real way the code could determine what language would be needed. But it seems clunky and rigid that I have to hardcode "langcode" in all cronjob t()'s. It would be easier/more generic if you could set back-end language also somewhere centrally.

Creating Custom Service With Custom(string) Parameters-Drupal-8|9

Hello Friends,

I am sharing here my experience for Creating Custom Service with custom(string) parameters. Here I will fetch data from a third party API and with display it.

For doing this We have to Create following files (for example I am creating custom module to create custom service).

Module name: custom_service

  • custom_service.info.yml
  • custom_service.module
  • custom_service.services.yml
  • src/services/CustomGetServices.php

  custom_service.info.yml

Question on View and display to be assigned to the good webform result

Hi,

I have created 2 webforms, and when i go to see my results, they are pointed to the same customized fields !
The first one use "Master" Display when i click on "View Edit"
And the second one use also "Master" Display when i click on "View Edit" , but i want to use another display with others customs fields!
How can assign my second webform to another Display with different fields ??
(First one is "MASTER" and second one is "EXPEDITIONS" with differents fields

thanks for your help

Event Ticket booking module options

Hi All,

I want to add a Event ticket booking feature in Drupal 9 with the following facilities:
- ability to manage events (add, edit, delete events like functions, anniversaries, movie tickets)
- ability for users to buy tickets via payment gateway systems like Stripe, Paypal etc.
- ability for Admin to provide Discounted rates for different kinds of users
- ability for users to apply for refund in case they could not attend the event
- event order management
- reports of orders

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions