New answers tagged


Maybe I poorly explained the question but the solution was possible without preprocess. In a content type, the referenced field with a taxonomy is called field_lorem For this Entity reference field (Type of item to reference : taxonomy term), we select in Manage display (admin/structure/types/manage/content_type_name/display) « Rendered entity » instead of ...


function MODULE_form_alter(array &$form, FormStateInterface $form_state, $form_id) { if($form_id == 'search_form') { $form['keys']['#attributes']['placeholder'] = t('Search topics...'); } }

Top 50 recent answers are included