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

How to ajax pre populate link field from entity reference to another link field?

I would like to populate link field from entity reference to another link field in my content edit.

Here is my module code : 

Migrate Module: How skip row

Please remove. I posted the question in another 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

Pages

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