Class PublishingFunctionProcessor
Function processor for publishing page transformation
Inherited Members
Namespace: PnP.Framework.Modernization.Publishing
Assembly: PnP.Framework.dll
Syntax
public class PublishingFunctionProcessor : BaseFunctionProcessor
Constructors
PublishingFunctionProcessor(ListItem, ClientContext, ClientContext, PublishingPageTransformation, BaseTransformationInformation, IList<ILogObserver>)
Default constructor
Declaration
public PublishingFunctionProcessor(ListItem page, ClientContext sourceClientContext, ClientContext targetClientContext, PublishingPageTransformation publishingPageTransformation, BaseTransformationInformation baseTransformationInformation, IList<ILogObserver> logObservers = null)
Parameters
List Page to operate on |
Client Clientcontext of the source site |
Client Clientcontext of the target site |
Publishing Publishing page layout mapping |
Base Page transformation information |
IList<ILog Connected loggers |
Properties
NameAttributeToken
Name token
Declaration
public string NameAttributeToken { get; }
Property Value
System.
|
Methods
Process(String, String, PublishingFunctionProcessor.FieldType)
Executes a function and returns results
Declaration
public Tuple<string, string> Process(string functions, string propertyName, PublishingFunctionProcessor.FieldType propertyType)
Parameters
System. Function to process |
System. Field/property the function runs on |
Publishing Type of the field/property the function will run on |
Returns
Tuple<System. Function output |
ResolveFunctionToken(String, String)
Replaces instances of the NameAttributeToken with the provided PropertyName
Declaration
public string ResolveFunctionToken(string functions, string propertyName)
Parameters
System. A string value containing the function definition |
System. The property to replace it with |
Returns
System. The newly formatted function value. |