C_XMLUtil.GetTemplates

From Warcraft Wiki
Jump to navigation Jump to search

Returns a list of all registered XML templates.

templates = C_XMLUtil.GetTemplates()

Returns

templates
XMLTemplateListInfo[] - An array of tables for each registered XML template.
Field Type Description
name string The name of the XML template.
type string The frame type ("Frame", "Button", etc.) of the XML template.

Example

The following snippet will print all the names and frame types of registered XML templates.

for _, template in ipairs(C_XMLUtil.GetTemplates()) do
    print(template.name, template.type)
end

Patch changes

Dragonflight Patch 10.0.0 (2022-10-25): Added.