function FormHooks::formNodePreviewFormSelectAlter

Same name and namespace in other branches
  1. main core/themes/admin/src/Hook/FormHooks.php \Drupal\admin\Hook\FormHooks::formNodePreviewFormSelectAlter()

Implements hook_form_FORM_ID_alter().

Attributes

#[Hook('form_node_preview_form_select_alter')]

File

core/themes/admin/src/Hook/FormHooks.php, line 323

Class

FormHooks
Provides form related hook implementations.

Namespace

Drupal\admin\Hook

Code

public function formNodePreviewFormSelectAlter(array &$form) : 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.