prepareParameters()
Overview
public struct function prepareParameters(
required string template
, struct args
, struct templateDetail
, array detectedParams
)
Runs an email template's 'prepareParameters' handler action to prepare dynamic parameters for the email render.
Arguments
Name | Type | Required | Description |
---|---|---|---|
template | string | Yes | ID of the template whose parameters are to be prepared |
args | struct | No | A struct of args that have been passed to the email sending logic that will inform the building of this email |
templateDetail | struct | No | Struct with details of the template whose parameters are to be prepared |
detectedParams | array | No | Array of parameter names that have been detected in the content - providers can use this to restrict the rendering of parameters to only those necessary |