Commit 336f6fd1 authored by catch's avatar catch
Browse files

Issue #3164498 by shetpooja04, Sam152, jijojoseph_zyxware: Unused variable...

Issue #3164498 by shetpooja04, Sam152, jijojoseph_zyxware: Unused variable $entity_type_ids in content_moderation module, content_moderation.module
parent 421f994a
......@@ -301,7 +301,7 @@ function content_moderation_workspace_access(WorkspaceInterface $workspace, $ope
$workflow_type = $workflow->getTypePlugin();
// Find all workflows which are moderating entity types of the same type to
// those that are tracked by the workspace.
if ($entity_type_ids = array_intersect($workflow_type->getEntityTypes(), array_keys($tracked_revisions))) {
if (array_intersect($workflow_type->getEntityTypes(), array_keys($tracked_revisions))) {
$workflow_non_default_states[$workflow->id()] = array_filter(array_map(function (ContentModerationState $state) {
return !$state->isDefaultRevisionState() ? $state->id() : NULL;
}, $workflow_type->getStates()));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment