function claro_form_node_preview_form_select_alter

Same name and namespace in other branches
  1. 11.x core/themes/claro/claro.theme \claro_form_node_preview_form_select_alter()
  2. main core/themes/claro/claro.theme \claro_form_node_preview_form_select_alter()

Implements hook_form_FORM_ID_alter().

File

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

Code

function claro_form_node_preview_form_select_alter(array &$form, FormStateInterface $form_state) {
  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.