public function settingsHtml()
    {
        Craft::$app->view->registerAssetBundle(PatrolPluginAssetBundle::class);

        /**
         * @var SettingsModel $settings
         */
        $settings  = $this->getSettings();
        $variables = [
            'plugin'       => $this,
            'settings'     => $settings,
            'settingsJson' => $settings->getJsonObject(),
        ];

        $html = Craft::$app->view->renderTemplate('patrol/_settings', $variables);

        return Template::raw($html);
    }
public function settingsHtml()
    {
        Craft::$app->view->registerAssetBundle(PatrolPluginAssetBundle::class);

        /**
         * @var SettingsModel $settings
         */
        $settings  = $this->getSettings();
        $variables = [
            'plugin'       => $this,
            'settings'     => $settings,
            'settingsJson' => $settings->getJsonObject(),
        ];

        $html = Craft::$app->view->renderTemplate('patrol/_settings', $variables);

        return Template::raw($html);
    }
public function settingsHtml ( ) { Craft :: $ app -> view -> registerAssetBundle ( PatrolPluginAssetBundle :: class ) ; /**
         * @var SettingsModel $settings
         */ $ settings = $ this -> getSettings ( ) ; $ variables = [ 'plugin' => $ this , 'settings' => $ settings , 'settingsJson' => $ settings -> getJsonObject ( ) , ] ; $ html = Craft :: $ app -> view -> renderTemplate ( 'patrol/_settings' , $ variables ) ; return Template :: raw ( $ html ) ; }
Returns rendered settings UI as a twig markup object

@return \Twig_Markup
@throws \Twig_Error_Loader
@throws \yii\base\Exception
@throws \yii\base\InvalidConfigException
Returns rendered settings UI as a twig markup object