original_string: public function getWidgetMetadata($idSite)
      {
          Piwik::checkUserHasViewAccess($idSite);
  
          $widgetsList  = WidgetsList::get();
          $categoryList = CategoryList::get();
          $metadata     = new WidgetMetadata();
  
          return $metadata->getWidgetMetadata($categoryList, $widgetsList);
      }
code: public function getWidgetMetadata($idSite)
      {
          Piwik::checkUserHasViewAccess($idSite);
  
          $widgetsList  = WidgetsList::get();
          $categoryList = CategoryList::get();
          $metadata     = new WidgetMetadata();
  
          return $metadata->getWidgetMetadata($categoryList, $widgetsList);
      }
code_tokens: public function getWidgetMetadata ( $ idSite ) { Piwik :: checkUserHasViewAccess ( $ idSite ) ; $ widgetsList = WidgetsList :: get ( ) ; $ categoryList = CategoryList :: get ( ) ; $ metadata = new WidgetMetadata ( ) ; return $ metadata -> getWidgetMetadata ( $ categoryList , $ widgetsList ) ; }
docstring: Get a list of all widgetizable widgets.
  
  @param int $idSite
  @return array
docstring_tokens: Get a list of all widgetizable widgets .