XpmActions._processTemplate() method
Processes a template action by expanding it and registering the generated actions.
Signature
protected _processTemplate({ actionName, jsonActionTemplate, }: {
actionName: string;
jsonActionTemplate: JsonActionTemplate;
}): Promise<void>;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
{ actionName, jsonActionTemplate, } |
{ actionName: string; jsonActionTemplate: JsonActionTemplate; } |
Returns
Promise<void>
A promise that resolves when processing is complete.
Exceptions
XpmError If duplicate action names are detected during expansion or if template expansion fails.
Remarks
This helper method is called during collection initialisation for each action whose name contains template syntax ({{ markers).
Processing steps:
- Calls
\_expandTemplateActions()to generate all action instances from the template's matrix parameters. - Validates that each expanded action name is unique and does not conflict with existing actions.
- Registers each expanded action in the internal maps:
\_actionsMap: Maps name to action instance.\_jsonActionsNamesMap: Maps expanded name back to original template name.\_actionsNamesSet: Tracks all registered names for duplicate detection.
Generated via tsdoc2docusaurus 1.3.0-pre by API Extractor/Documenter 7.55.2.