Document the need for a moderation state

Created on 16 March 2023, almost 2 years ago
Updated 23 March 2023, over 1 year ago

Problem/Motivation

This module takes for granted the existence of a moderation state on entities and the content_calendar won't work if there is no moderation as the query will always return 0 total nodes afther this innerJoin.

    $query->innerJoin(
      'content_moderation_state_field_data',
      'cmfd',
      'nfd.nid = cmfd.content_entity_id AND cmfd.content_entity_type_id = :entity_type_id',
      [':entity_type_id' => 'node']
    );

The documentation and the module help/messages should be aware of this and warn the user about this need.

Ideally, the module should support nodes without a moderation message but that would be another issue and would need a refactor of code.

Feature request
Status

Fixed

Version

1.0

Component

Documentation

Created by

🇪🇸Spain idiaz.roncero Madrid

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

Comments & Activities

Production build 0.71.5 2024