protected function getRoleTreeNodeConfig($role)
{
$tmpUser = ["id" => $role->getId(), "text" => $role->getName(), "elementType" => "role", "qtipCfg" => ["title" => "ID: " . $role->getId()]];
// set type specific settings
if ($role instanceof User\Role\Folder) {
$tmpUser["leaf"] = false;
$tmpUser["iconCls"] = "pimcore_icon_folder";
$tmpUser["expanded"] = true;
$tmpUser["allowChildren"] = true;
if ($role->hasChilds()) {
$tmpUser["expanded"] = false;
} elseif (\Pimcore\Tool\Admin::isExtJS6()) {
$tmpUser["loaded"] = true;
}
} else {
$tmpUser["leaf"] = true;
$tmpUser["iconCls"] = "pimcore_icon_roles";
$tmpUser["allowChildren"] = false;
}
return $tmpUser;
}