def METHOD_NAME(self):
    actions = []
    for category in self.portal_actions.objectValues():
        if category.id == "controlpanel":
            continue
        if not IActionCategory.providedBy(category):
            continue
        cat_infos = {
            "id": category.id,
            "title": category.title or category.id,
        }
        action_list = []
        for action in category.objectValues():
            if IAction.providedBy(action):
                action_list.append(
                    {
                        "id": action.id,
                        "title": action.title,
                        "url": action.absolute_url(),
                        "visible": action.visible,
                    }
                )
        cat_infos["actions"] = action_list
        actions.append(cat_infos)
    self.actions = actions
    return self.template()