function ClaroHooks::formNodePreviewFormSelectAlter
Implements hook_form_FORM_ID_alter() for node_preview_form_select.
Attributes
#[Hook('form_node_preview_form_select_alter')]
File
-
core/
themes/ claro/ src/ Hook/ ClaroHooks.php, line 1558
Class
- ClaroHooks
- Hook implementations for claro.
Namespace
Drupal\claro\HookCode
public function formNodePreviewFormSelectAlter(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.