public function listTabbedPermissions()
    {
        $tabs = [];

        foreach ($this->listPermissions() as $permission) {
            $tab = $permission->tab ?? 'backend::lang.form.undefined_tab';

            if (!array_key_exists($tab, $tabs)) {
                $tabs[$tab] = [];
            }

            $tabs[$tab][] = $permission;
        }

        return $tabs;
    }
public function listTabbedPermissions()
    {
        $tabs = [];

        foreach ($this->listPermissions() as $permission) {
            $tab = $permission->tab ?? 'backend::lang.form.undefined_tab';

            if (!array_key_exists($tab, $tabs)) {
                $tabs[$tab] = [];
            }

            $tabs[$tab][] = $permission;
        }

        return $tabs;
    }
public function listTabbedPermissions ( ) { $ tabs = [ ] ; foreach ( $ this -> listPermissions ( ) as $ permission ) { $ tab = $ permission -> tab ?? 'backend::lang.form.undefined_tab' ; if ( ! array_key_exists ( $ tab , $ tabs ) ) { $ tabs [ $ tab ] = [ ] ; } $ tabs [ $ tab ] [ ] = $ permission ; } return $ tabs ; }
Returns an array of registered permissions, grouped by tabs.
@return array
Returns an array of registered permissions grouped by tabs .