Loading scheduler_content_moderation_integration.module +5 −1 Original line number Diff line number Diff line Loading @@ -211,7 +211,11 @@ function _scheduler_content_moderation_integration_states_values(FieldStorageDef return $user->hasPermission('use ' . $workflow->id() . ' transition ' . $transition->id()); }); $current_state = $workflow->getTypePlugin()->getState($entity->moderation_state->value); // Grabs the entity moderation state if it has a value, otherwise it uses the // default one. $current_state = !empty($entity->moderation_state->value) ? $type_plugin->getState($entity->moderation_state->value) : $type_plugin->getState($type_plugin->getConfiguration()['default_moderation_state']); // Record the possible new publish states for use when determining which of // the unpublish states to add as valid options. Loading Loading
scheduler_content_moderation_integration.module +5 −1 Original line number Diff line number Diff line Loading @@ -211,7 +211,11 @@ function _scheduler_content_moderation_integration_states_values(FieldStorageDef return $user->hasPermission('use ' . $workflow->id() . ' transition ' . $transition->id()); }); $current_state = $workflow->getTypePlugin()->getState($entity->moderation_state->value); // Grabs the entity moderation state if it has a value, otherwise it uses the // default one. $current_state = !empty($entity->moderation_state->value) ? $type_plugin->getState($entity->moderation_state->value) : $type_plugin->getState($type_plugin->getConfiguration()['default_moderation_state']); // Record the possible new publish states for use when determining which of // the unpublish states to add as valid options. Loading