src/AdminBar.php
protected function settingsHtml(): string
    {
        //AdminBar::$plugin->bar->clearAdminBarCache();

        $settings = $this->getSettings();

        // Create one empty table row if non are present
        if (empty($settings->customLinks)) {
            $settings['customLinks'] = [['','',0]];
        }

        $adminBarWidgets = AdminBar::$plugin->bar->getAdminBarWidgetsFromPlugins();

        return Craft::$app->view->renderTemplate(
            'admin-bar/settings',
            [
                'widgets'  => $adminBarWidgets,
                'settings' => $settings
            ]
        );
    }
protected function settingsHtml(): string
    {
        //AdminBar::$plugin->bar->clearAdminBarCache();

        $settings = $this->getSettings();

        // Create one empty table row if non are present
        if (empty($settings->customLinks)) {
            $settings['customLinks'] = [['','',0]];
        }

        $adminBarWidgets = AdminBar::$plugin->bar->getAdminBarWidgetsFromPlugins();

        return Craft::$app->view->renderTemplate(
            'admin-bar/settings',
            [
                'widgets'  => $adminBarWidgets,
                'settings' => $settings
            ]
        );
    }
protected function settingsHtml ( ) : string { //AdminBar::$plugin->bar->clearAdminBarCache(); $ settings = $ this -> getSettings ( ) ; // Create one empty table row if non are present if ( empty ( $ settings -> customLinks ) ) { $ settings [ 'customLinks' ] = [ [ '' , '' , 0 ] ] ; } $ adminBarWidgets = AdminBar :: $ plugin -> bar -> getAdminBarWidgetsFromPlugins ( ) ; return Craft :: $ app -> view -> renderTemplate ( 'admin-bar/settings' , [ 'widgets' => $ adminBarWidgets , 'settings' => $ settings ] ) ; }
Returns the rendered settings HTML, which will be inserted into the content
block on the settings page.

@return string The rendered settings HTML
Returns the rendered settings HTML which will be inserted into the content block on the settings page .