Piwik\Plugins\Events\Events::getLabelTranslations PHP Method

getLabelTranslations() public static method

public static getLabelTranslations ( ) : array
return array
    public static function getLabelTranslations()
    {
        return array('getCategory' => array('Events_EventCategories', 'Events_EventCategory'), 'getAction' => array('Events_EventActions', 'Events_EventAction'), 'getName' => array('Events_EventNames', 'Events_EventName'));
    }

Usage Example

Esempio n. 1
0
 public function configure(WidgetsList $widgetsList)
 {
     foreach (Events::getLabelTranslations() as $apiMethod => $labels) {
         $params = array('secondaryDimension' => API::getInstance()->getDefaultSecondaryDimension($apiMethod));
         $widgetsList->add('Events_Events', $labels[0], 'Events', $apiMethod, $params);
     }
 }
All Usage Examples Of Piwik\Plugins\Events\Events::getLabelTranslations