Same name and namespace in other branches
- 9 core/themes/olivero/olivero.theme \olivero_form_node_preview_form_select_alter()
Implements hook_form_FORM_ID_alter().
File
- core/
themes/ olivero/ olivero.theme, line 506 - Functions to support theming in the Olivero theme.
Code
function olivero_form_node_preview_form_select_alter(&$form, FormStateInterface $form_state, $form_id) {
$form['backlink']['#options']['attributes']['class'][] = 'button';
$form['backlink']['#options']['attributes']['class'][] = 'button--small';
$form['backlink']['#options']['attributes']['class'][] = 'button--icon-back';
$form['backlink']['#options']['attributes']['class'][] = 'button--primary';
$form['view_mode']['#attributes']['class'][] = 'form-element--small';
}