Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
Hello I have a custom form with 2 date fields
In the submit I run a query that returns an error when I don't enter the date
I found a solution but I don't know if it is the right solution and if it is ok to operate like this
Below is the code
I'm develop a module make create a few services dinamically in a ServiceProvider (src/<MyModuleName>ServiceProvider.php). It's works correcly but I have a question.
My ServiceProvide needs a parameters to define de services to add to container and I have it in my my-module.service.yml:
Hi, with the key 'disable', I make the checkbox (boolean) field read-only. This field is updated to True or False programmatically,
I noticed that on saving, the field is not updated.
Researching I read that the key 'readonly' is used, I tried but with the boolean it does not work.