function claro_form_node_preview_form_select_alter

Same name and namespace in other branches
  1. 10 core/themes/claro/claro.theme \claro_form_node_preview_form_select_alter()

Implements hook_form_FORM_ID_alter() for node_preview_form_select.

File

core/themes/claro/claro.theme, line 1746

Code

function claro_form_node_preview_form_select_alter(array &$form, FormStateInterface $form_state) : void {
  if (isset($form['backlink'])) {
    $form['backlink']['#options']['attributes']['class'][] = 'action-link';
    $form['backlink']['#options']['attributes']['class'][] = 'action-link--icon-chevron-left';
  }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.