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

Issue #3459779: Revert: moving delete as a gin action item and keeping in the...

Issue #3459779: Revert: moving delete as a gin action item and keeping in the more actions with Default Gin provided behaviour API for sticky form actions
parent 92187cb2
No related branches found
No related tags found
No related merge requests found
......@@ -54,25 +54,6 @@ function varbase_admin_form_node_type_add_form_alter(array &$form, FormStateInte
return $form;
}
/**
* Implements hook_form_alter().
*/
function varbase_admin_form_alter(array &$form, FormStateInterface $form_state) {
// Move the moderation status to actions when the Gin admin theme.
$active_theme = \Drupal::theme()->getActiveTheme();
$base_themes = (array) $active_theme->getBaseThemeExtensions();
if ($active_theme->getName() === 'gin' || array_key_exists('gin', $base_themes)) {
// Move delete to be a gin action item.
if (isset($form['actions']['delete'])) {
$form['actions']['delete']['#gin_action_item'] = TRUE;
}
}
return $form;
}
/**
* Implements hook_library_info_alter().
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment