Score:0

Display machine name in entity_form_display_edit_form

nr flag

The Entity Form Display edit form has a hidden field:

      'hidden_name' => [
        '#type' => 'hidden',
        '#default_value' => $field_name,
        '#attributes' => [
          'class' => [
            'field-name',
          ],
        ],
      ],

Can I make this field visible with a hook_form_alter() implementation?

Here's what I have so far:

/**
 * Implements hook_form_alter().
 */
function my_custom_admin_theme_form_alter(&$form, FormStateInterface $form_state, $form_id) {
  if ($form_id == 'entity_form_display_edit_form') {
    // do something
  }
}
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.