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

Workaround for Drupal Logger's extreme inefficiency

The default Drupal logger is so inefficient it can't even print out an array containing two content-types, what gives? I'm trying to log an array that contains two content-types but I keep getting the error that I've ran out of memory, which is ridiculous because I currently have my setting at `512M`. 

It seems crazy to me that it takes Drupal more than 512MB to log some text.... 

Drupal commerce

After so much testing

I have decided to migrate my development from a virtual store from ubercart to Drupal commerce but I have a problem as

I can create a product catalog to display on the main page of the store. is there any module for it ???

How do I link my entity to the Views module in Drupal and set the CONTEXT FILTERS and LINKS?

Have a question!

How to install CONTEXT FILTERS and CONNECTIONS in a view if a self-made entity is displayed in it, i.e. in fact, the view does not see anything other than the table fields, and I need to filter the displayed data by the current user. Please tell me how can I get the id of the current user to install the filter?

Using AJAX to update a form's image button not working as expected

I am building a form that contains two image buttons and an undo button. The user clicks one of the two image button's and then the images are suppose to update to new images, and they do this about 60 times before we submit the results. The user can select the undo button to undo their last selection and select another one. This form is also displayed in a modal. However, I'm having some strange behavior with the images updating when you click the image...

Here's my routes file:

Default values in form_alter

Drupal 8.8.5

In form_alter I insert this code to assign a default value to an Entity reference field
$form['field_localita_partenza']['widget'][0]['target_id']['#default_value'] = 'ROME';

During the insertion phase, I change Rome In Milan but when I save it forces me to value ROME and not MILAN.
I have done various tests but without success.
I don't understand why it doesn't work

Programmable text pages?

This might be an unusual question. Is it possible to generate text in Drupal based on variables and 'if then else', and preferably also 'switch case1 case2 ...'?

Pages

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