Issue #3132022: Tweak content_moderation_workspace_access() to utilise content_entity_type_id.
Compare changes
Files
2
Conflict: This file was modified in both the source and target branches.
Ask someone with write access to resolve it.
@@ -45,24 +45,39 @@ public function onWorkspacePrePublish(WorkspacePublishEvent $event): void {
@@ -45,24 +45,39 @@ public function onWorkspacePrePublish(WorkspacePublishEvent $event): void {
foreach ($this->entityTypeManager->getStorage('workflow')->loadByProperties(['type' => 'content_moderation']) as $workflow) {
/** @var \Drupal\content_moderation\Plugin\WorkflowType\ContentModerationInterface $workflow_type */
$workflow_non_default_states[$workflow->id()] = array_filter(array_map(function (ContentModerationState $state) {