Problem/Motivation

The workbench_moderation module should be comapitable with the gutenberg module.

Proposed resolution

  • Implement a hook_page_attachments_alter() to pass on the moderation states into drupalSettings.gutenberg.nodeActions.
  • Updated the \Drupal\workbench_moderation\Plugin\Field\FieldWidget\ModerationStateWidget::processActions to add attributes.id to the button element.
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rahul.shinde created an issue. See original summary.

rahul.shinde’s picture

Assigned: rahul.shinde » Unassigned
Status: Active » Needs review
rahul.shinde’s picture

Issue summary: View changes