Please enable JavaScript to view this site.

The manual for the JobRouter developer

Navigation: Dashboard API > Methods and objects of the dashboard API > Overwritable methods

Category of the widget (getCategory)

Scroll Prev Top Next More

This function returns the Category (not the name) of the widget. The Category is used for sorting in the widget collection and automatically translated into the user language.

The widget is assigned to the default Category General if this function is not overwritten in the widget. If the return value does not correspond to an existing Category, the widget is listed in the default Category General.

Please note: The Category has no effect on the permission to display. This must be implemented in the isAuthorized method.

Example:

public function getCategory()
{
    return 'administration';
}