Skip to content
Snippets Groups Projects

Issue #3348733: Allow themes to alter paragraphs_widget_actions

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -798,8 +798,9 @@ class ParagraphsWidget extends WidgetBase {
'allow_reference_changes' => $this->allowReferenceChanges(),
];
// Allow modules to alter widget actions.
// Allow modules and themes to alter widget actions.
\Drupal::moduleHandler()->alter('paragraphs_widget_actions', $widget_actions, $context);
\Drupal::theme()->alter('paragraphs_widget_actions', $widget_actions, $context);
if (!empty($widget_actions['actions'])) {
// Expand all actions to proper submit elements and add it to top
Loading