0

I should change the value of a field before it is rendered. I tried with [NAME_MODULE]_node_view but it is not invoked when I edit the node.

Thank you so much.

0

I alter my forms with the following:

function mymodule_form_test_edit_form_alter(&$form, FormStateInterface $form_state, $form_id) {
  // code here...
}

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.