public function navbar_plugin_output() {
        $output = '';

        // Give subsystems an opportunity to inject extra html content. The callback
        // must always return a string containing valid html.
        foreach (\core_component::get_core_subsystems() as $name => $path) {
            if ($path) {
                $output .= component_callback($name, 'render_navbar_output', [$this], '');
            }
        }

        if ($pluginsfunction = get_plugins_with_function('render_navbar_output')) {
            foreach ($pluginsfunction as $plugintype => $plugins) {
                foreach ($plugins as $pluginfunction) {
                    $output .= $pluginfunction($this);
                }
            }
        }

        return $output;
    }
public function navbar_plugin_output() {
        $output = '';

        // Give subsystems an opportunity to inject extra html content. The callback
        // must always return a string containing valid html.
        foreach (\core_component::get_core_subsystems() as $name => $path) {
            if ($path) {
                $output .= component_callback($name, 'render_navbar_output', [$this], '');
            }
        }

        if ($pluginsfunction = get_plugins_with_function('render_navbar_output')) {
            foreach ($pluginsfunction as $plugintype => $plugins) {
                foreach ($plugins as $pluginfunction) {
                    $output .= $pluginfunction($this);
                }
            }
        }

        return $output;
    }
public function navbar_plugin_output ( ) { $ output = '' ; // Give subsystems an opportunity to inject extra html content. The callback // must always return a string containing valid html. foreach ( \ core_component :: get_core_subsystems ( ) as $ name => $ path ) { if ( $ path ) { $ output .= component_callback ( $ name , 'render_navbar_output' , [ $ this ] , '' ) ; } } if ( $ pluginsfunction = get_plugins_with_function ( 'render_navbar_output' ) ) { foreach ( $ pluginsfunction as $ plugintype => $ plugins ) { foreach ( $ plugins as $ pluginfunction ) { $ output .= $ pluginfunction ( $ this ) ; } } } return $ output ; }
Allow plugins to provide some content to be rendered in the navbar.
The plugin must define a PLUGIN_render_navbar_output function that returns
the HTML they wish to add to the navbar.

@return string HTML for the navbar
Allow plugins to provide some content to be rendered in the navbar . The plugin must define a PLUGIN_render_navbar_output function that returns the HTML they wish to add to the navbar .