isSeoEditorialWorkflowActionEnabled function
bool
isSeoEditorialWorkflowActionEnabled(
- SeoEditorialWorkflowState state,
- SeoEditorialWorkflowAction action
Implementation
bool isSeoEditorialWorkflowActionEnabled(
SeoEditorialWorkflowState state,
SeoEditorialWorkflowAction action,
) =>
isValidSeoEditorialWorkflowState(state) &&
state.history.length < seoEditorialWorkflowMaxHistoryEntries &&
_targetSeoEditorialWorkflowStage(state.stage, action) != null;