diff --git a/public/app/features/templating/template_srv.ts b/public/app/features/templating/template_srv.ts index 57d7671af8d..83e4c259728 100644 --- a/public/app/features/templating/template_srv.ts +++ b/public/app/features/templating/template_srv.ts @@ -198,6 +198,11 @@ export class TemplateSrv implements BaseTemplateSrv { return variable !== null && variable !== undefined; } + variableExists(expression: string): boolean { + deprecationWarning('template_srv.ts', 'variableExists', 'containsTemplate'); + return this.containsTemplate(expression); + } + highlightVariablesAsHtml(str: string) { if (!str || !isString(str)) { return str;