Skip to content

Preferences🔗

Definition🔗

class Preferences implements \JsonSerializable
{
    /**
     * Explicit home URL (NOTE: this can only be modified in the system settings)
     */
    public ?string $homeURL;

    /**
     * UID for the home dashboard
     */
    public ?string $homeDashboardUID;

    /**
     * The timezone selection
     */
    public ?string $timezone;

    /**
     * day of the week (sunday, monday, etc)
     */
    public ?string $weekStart;

    /**
     * user interface theme
     */
    public ?string $theme;

    /**
     * Selected language
     */
    public ?string $language;

    /**
     * Explore query history preferences
     */
    public ?\Grafana\Foundation\Preferencesv1alpha1\QueryHistoryPreference $queryHistory;

    /**
     * Navigation preferences
     */
    public ?\Grafana\Foundation\Preferencesv1alpha1\NavbarPreference $navbar;

}

Methods🔗

fromArray🔗

Builds this object from an array.

This function is meant to be used with the return value of json_decode($json, true).

static fromArray(array $inputData)

jsonSerialize🔗

Returns the data representing this object, preparing it for JSON serialization with json_encode().

jsonSerialize()

See also🔗