You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

ancestor_types()

Usage

ancestor_types(type[, blacklist])

Description
Returns the list of parent types of the given type including the type itself. Additionally a blacklist of type names can be provided as a list. If omitted, the list contains only “AbstractNode” by default.

Examples

${ancestor_types("MyType")}
${ancestor_types("MyType", merge())}  (merge() is used to create an empty list so the blacklist is reset)

results in

[MyType]
[MyType, AbstractNode]

Search results for "ancestor_types()"

ancestor_types()

Returns the list of parent types of the given type including the type itself. Additionally a blacklist of type names can be provided as a list. If omitted, the list contains only “AbstractNode” by default.

ancestor_types(type[, blacklist])