Elgg\Debug\Inspector::getActions PHP Method

getActions() public method

returns [action] => array(file, access)
public getActions ( ) : array
return array
    public function getActions()
    {
        $tree = array();
        $access = array('public' => 'public', 'logged_in' => 'logged in only', 'admin' => 'admin only');
        $start = strlen(elgg_get_root_path());
        foreach (_elgg_services()->actions->getAllActions() as $action => $info) {
            $info['file'] = substr($info['file'], $start);
            $tree[$action] = array($info['file'], $access[$info['access']]);
        }
        ksort($tree);
        return $tree;
    }