From b3f2ba0ea4131c60c8c7002da5ed49ddcc685a0f Mon Sep 17 00:00:00 2001 From: whilke Date: Fri, 18 Jan 2019 13:49:33 -0600 Subject: [PATCH] fix: Added util to lookup current ingredient source value --- ingredient/ingredient-utils/src/functions.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ingredient/ingredient-utils/src/functions.ts b/ingredient/ingredient-utils/src/functions.ts index 2f50a99c..d483d36a 100644 --- a/ingredient/ingredient-utils/src/functions.ts +++ b/ingredient/ingredient-utils/src/functions.ts @@ -50,5 +50,9 @@ export class CoreUtils extends BaseUtility { public create_storage_name(name: string | null = null, suffix: string = "") { return this.create_resource_name("st", name, true, suffix) } + + public get_ingredient_source(): string { + return this.context.Ingredient.properties.source.value(this.context) + } }