Answers for "drupal 8 form element theme suggestions"

0

drupal 8 form element theme suggestions

function MYMODULE_theme_suggestions_form_element_alter(array &$suggestions, array $variables, $hook) {
  if ( $variables['element']['#id'] === 'FORMID') {
    $suggestions[] = $hook . '__custom';
  }
}
Posted by: Guest on December-27-2020

Browse Popular Code Answers by Language