public function getNamespaceDefinitions(): string
    {
        $script = 'var Frontend = {};';
        $script .= 'var App = { Controllers: {}, Components: {}, Lib: {} };';
        $tpl = 'App.Controllers.%s = {};';
        foreach ($this->_pluginJsNamespaces as $pluginName) {
            $script .= sprintf($tpl, $pluginName);
        }

        return $this->Html->scriptBlock($script);
    }
public function getNamespaceDefinitions(): string
    {
        $script = 'var Frontend = {};';
        $script .= 'var App = { Controllers: {}, Components: {}, Lib: {} };';
        $tpl = 'App.Controllers.%s = {};';
        foreach ($this->_pluginJsNamespaces as $pluginName) {
            $script .= sprintf($tpl, $pluginName);
        }

        return $this->Html->scriptBlock($script);
    }
public function getNamespaceDefinitions ( ) : string { $ script = 'var Frontend = {};' ; $ script .= 'var App = { Controllers: {}, Components: {}, Lib: {} };' ; $ tpl = 'App.Controllers.%s = {};' ; foreach ( $ this -> _pluginJsNamespaces as $ pluginName ) { $ script .= sprintf ( $ tpl , $ pluginName ) ; } return $ this -> Html -> scriptBlock ( $ script ) ; }
Returns a script block containing namespace definitions for plugin controllers.

@return string
Returns a script block containing namespace definitions for plugin controllers .