buildSeoEditorialWorkflowNodes function
List<SeoNode>
buildSeoEditorialWorkflowNodes({
- required List<
SeoEditorialWorkflowStageEntry> stages, - required SeoEditorialWorkflowState initialState,
- required SeoEditorialWorkflowViewProjection project,
- String? interactionId,
- int headingLevel = 2,
- String heading = 'Editorial workflow',
- String interactionLabel = 'Editorial approval workflow',
- String statusLabel = 'Status',
- String progressLabel = 'Progress',
- String historyLabel = 'History',
- String submitLabel = 'Submit for review',
- String approveLabel = 'Approve',
- String rejectLabel = 'Reject',
- String publishLabel = 'Publish',
Implementation
List<SeoNode> buildSeoEditorialWorkflowNodes({
required List<SeoEditorialWorkflowStageEntry> stages,
required SeoEditorialWorkflowState initialState,
required SeoEditorialWorkflowViewProjection project,
String? interactionId,
int headingLevel = 2,
String heading = 'Editorial workflow',
String interactionLabel = 'Editorial approval workflow',
String statusLabel = 'Status',
String progressLabel = 'Progress',
String historyLabel = 'History',
String submitLabel = 'Submit for review',
String approveLabel = 'Approve',
String rejectLabel = 'Reject',
String publishLabel = 'Publish',
}) {
final plan = prepareSeoEditorialWorkflowComponent(
stages: stages,
initialState: initialState,
project: project,
interactionId: interactionId,
headingLevel: headingLevel,
heading: heading,
interactionLabel: interactionLabel,
statusLabel: statusLabel,
progressLabel: progressLabel,
historyLabel: historyLabel,
submitLabel: submitLabel,
approveLabel: approveLabel,
rejectLabel: rejectLabel,
publishLabel: publishLabel,
);
return plan == null ? const [] : buildSeoEditorialWorkflowPlanNodes(plan);
}