original_string: public function getWidgetConfigs()
      {
          $widgetClasses = $this->getAllWidgetClassNames();
  
          $configs = array();
  
          /**
           * Triggered to add custom widget configs. To filder widgets have a look at the {@hook Widget.filterWidgets}
           * event.
           *
           * **Example**
           *
           *     public function addWidgetConfigs(&$configs)
           *     {
           *         $config = new WidgetConfig();
           *         $config->setModule('PluginName');
           *         $config->setAction('renderDashboard');
           *         $config->setCategoryId('Dashboard_Dashboard');
           *         $config->setSubcategoryId('dashboardId');
           *         $configs[] = $config;
           *     }
           *
           * @param array &$configs An array containing a list of widget config entries.
           */
          Piwik::postEvent('Widget.addWidgetConfigs', array(&$configs));
  
          foreach ($widgetClasses as $widgetClass) {
              $configs[] = $this->getWidgetConfigForClassName($widgetClass);
          }
  
          return $configs;
      }
code: public function getWidgetConfigs()
      {
          $widgetClasses = $this->getAllWidgetClassNames();
  
          $configs = array();
  
          /**
           * Triggered to add custom widget configs. To filder widgets have a look at the {@hook Widget.filterWidgets}
           * event.
           *
           * **Example**
           *
           *     public function addWidgetConfigs(&$configs)
           *     {
           *         $config = new WidgetConfig();
           *         $config->setModule('PluginName');
           *         $config->setAction('renderDashboard');
           *         $config->setCategoryId('Dashboard_Dashboard');
           *         $config->setSubcategoryId('dashboardId');
           *         $configs[] = $config;
           *     }
           *
           * @param array &$configs An array containing a list of widget config entries.
           */
          Piwik::postEvent('Widget.addWidgetConfigs', array(&$configs));
  
          foreach ($widgetClasses as $widgetClass) {
              $configs[] = $this->getWidgetConfigForClassName($widgetClass);
          }
  
          return $configs;
      }
code_tokens: public function getWidgetConfigs ( ) { $ widgetClasses = $ this -> getAllWidgetClassNames ( ) ; $ configs = array ( ) ; /**
           * Triggered to add custom widget configs. To filder widgets have a look at the {@hook Widget.filterWidgets}
           * event.
           *
           * **Example**
           *
           *     public function addWidgetConfigs(&$configs)
           *     {
           *         $config = new WidgetConfig();
           *         $config->setModule('PluginName');
           *         $config->setAction('renderDashboard');
           *         $config->setCategoryId('Dashboard_Dashboard');
           *         $config->setSubcategoryId('dashboardId');
           *         $configs[] = $config;
           *     }
           *
           * @param array &$configs An array containing a list of widget config entries.
           */ Piwik :: postEvent ( 'Widget.addWidgetConfigs' , array ( & $ configs ) ) ; foreach ( $ widgetClasses as $ widgetClass ) { $ configs [ ] = $ this -> getWidgetConfigForClassName ( $ widgetClass ) ; } return $ configs ; }
docstring: Get all existing widget configs.
  
  @return WidgetConfig[]
docstring_tokens: Get all existing widget configs .