fun <T : SubTemplate<*, *, *>> createSubTemplate(constructor: (String, String, MutableMap<String, String>) -> T, input: SubTemplateInput, extendedTemplates: Collection<T>): T

Creates a SubTemplate based on the provided constructor and input Does not check authorization status and does not save the created SubTemplate

Return

the created SubTemplate

Parameters

constructor

function used to create the SubTemplate subtype instance, usually the constructor

input

used to get name, description and templateFieldSpecifications

extendedTemplates

Type Parameters

T

the specific subtype of SubTemplate to create