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

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

event on select ajax form

hello,

in my form, in have 2 field :

- 1, textfield, with ajax and event=>"change"

- 2, select, width ajax and event=>"change"

In the fist, when i leave the field, event fire and a trait in fonction correctly.
But in the second, i never fire the event.

What is the event when a select change ?

thank's

yonnel

How to print xml request from xmlrpc function

Trying to get the raw xml. Help appreciated ~

multiple form (same type) in a page

I have to use the same form on the same page many time. This form allows me to select an individual from a list, within different projects.
I generate this via: $ form = \ Drupal :: formBuilder () -> getForm ...

Pages

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