The getRootAncestor() method gets the root module in the module tree.
resp = getRootAncestor()
|
Object |
Splunk.Module object representing the module at the module tree root . |
getModulesInTree: function() {
var root = this.getRootAncestor();
return [root].concat(root.getDescendants());
},