def METHOD_NAME(self, **kw):
    """Get the defined ccontex actions of the listing view
    """
    portal = api.get_portal()
    portal_url = api.get_url(portal)
    actions = getattr(self.view, "context_actions", {})
    for k, v in actions.items():
        url = v.get("url")
        if not url:
            continue
        if not url.startswith(portal_url):
            context_url = api.get_url(self.context)
            url = "{}/{}".format(context_url, url)
        default_perm = k == "Add" and DEFAULT_ADD_PERM or DEFAULT_PERM
        perm = v.get("permission", default_perm)
        if not check_permission(perm, self.context):
            continue
        icon = v.get("icon")
        if icon.endswith("add.png"):
            icon = SVG_ADD_ICON
        action = v
        action.update({
            "title": k,
            "url": url,
            "permission": perm,
            "icon": icon,
        })
        yield action