Skip to content

Commit

Permalink
fix: Added util to lookup current ingredient source value
Browse files Browse the repository at this point in the history
  • Loading branch information
whilke committed Jan 18, 2019
1 parent 9d9b405 commit b3f2ba0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ingredient/ingredient-utils/src/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit b3f2ba0

Please sign in to comment.