Error on Drupal 9

Created on 15 May 2021, over 3 years ago
Updated 15 February 2023, almost 2 years ago

ArgumentCountError: Too few arguments to function Drupal\content_moderation\StateTransitionValidation::isTransitionValid(), 4 passed in /app/web/modules/contrib/moderation_state_buttons_widget/src/ModerationStateButtonsWidgetInfo.php on line 114 and exactly 5 expected in Drupal\content_moderation\StateTransitionValidation->isTransitionValid() (line 55 of /app/web/core/modules/content_moderation/src/StateTransitionValidation.php)

Solution:

Need to pass $entity to the function isTransitionValid(), its required since 9.0.x

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇮🇳India nitheesh India

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024