Try our conversational search powered by Generative AI!

Class StatusTransitionEvaluatorExtensions

Extension methods for the IStatusTransitionEvaluator interface.

Inheritance
System.Object
StatusTransitionEvaluatorExtensions
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Core
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public static class StatusTransitionEvaluatorExtensions

Methods

IsNewVersionRequired(IStatusTransitionEvaluator, IContent, SaveAction)

Evaluates if it will be required to create a new version if the provided action is taken on a content item.

Declaration
public static bool IsNewVersionRequired(this IStatusTransitionEvaluator evaluator, IContent content, SaveAction action)
Parameters
Type Name Description
IStatusTransitionEvaluator evaluator

The evaluator that will evaluate the transition.

IContent content

The content item that should be evaluated.

SaveAction action

The suggested action to take.

Returns
Type Description
System.Boolean

true if the action requires a new version to be created; othewise false.

Remarks

The return value will be false if the the provided action isn't valid.