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

Drupal 8 date field - "All day" reasoning

I'm curious why the Drupal 8 datetime_range module has both "Date only" and "All Day". Can anyone summarize the reasoning, or point at an issue thread or some such?

We are trying to assess the state of dates in Drupal 8 as we prepare to migrate our D7 site, to try to figure out what's coming and where / how we might be able to contribute to that. It feels like there is a general philosophy at work, but I'm not having much luck figuring it out. (These are bad words to try to search for, matching everything that mentions "all" or "day" ...)

Associate a node to a file using Javascript and services

Hi,

I have a hybrid mobile app and I'm trying to upload a file to the server and then associate it with a node. From reading a lot of other forum posts I understand that it's a 2-step process - first upload the file and then update the node using the returned file Id.

Configuration size limitation

Our custom module have 400+ fields in single configuration(mymodule.settings.yml). While saving configuration via admin backend, these values becomes empty intermittenly. Also when i tried to import these configuration via single item configuration import(admin/config/development/configuration/single/import), I'm getting this error  "Paste your configuration field is required". If i split that configuration(150 fields) and tried to import, it is working. So is there any limitation in configuration?

Field validation not working

I have created a custom entity field as follows:

disabe user menu

Hello,

when a user is connecting, i need he signed a charte before contenue.
I need to disabled a specific menu for this user before he signe and i have to enable item menu after.

this code disabled this item menu but for everybody

$menu_link = \Drupal::entityTypeManager()->getStorage('menu_link_content')->load(20);
$menu_link->enabled = 0;
$menu_link->save();

How to do the same thing BUT only for this user ?

thank's for help

yonnel

getting formatter and widget of my field

hi ,

i would like to get the id of the formatter and the id of widget really used by my given field

How to do ?

Thx

Pages

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