Skip to content
Snippets Groups Projects
Commit 2a3bfd93 authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #3459076: Fix regression for the moderation state element in Action...

Issue #3459076: Fix regression for the moderation state element in Action buttons in sticky header, which Gin provided a new API for sticky form actions
parent eb090557
No related branches found
No related tags found
No related merge requests found
...@@ -95,16 +95,6 @@ function varbase_workflow_form_alter(array &$form, FormStateInterface $form_stat ...@@ -95,16 +95,6 @@ function varbase_workflow_form_alter(array &$form, FormStateInterface $form_stat
// Change the title of the submit button. // Change the title of the submit button.
$form['actions']['submit']['#value'] = t('Save as'); $form['actions']['submit']['#value'] = t('Save as');
// Move unlock to be a gin action item.
if (isset($form['actions']['unlock'])) {
$form['actions']['unlock']['#gin_action_item'] = TRUE;
}
// Move delete to be a gin action item.
if (isset($form['actions']['delete'])) {
$form['actions']['delete']['#gin_action_item'] = TRUE;
}
// Add the Varbase Workflow moderation status theme styling library to fit in with actions. // Add the Varbase Workflow moderation status theme styling library to fit in with actions.
$form['#attached']['library'][] = 'varbase_workflow/moderation-state'; $form['#attached']['library'][] = 'varbase_workflow/moderation-state';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment