Utility functions in the Shopware 6 Administration are registered to the Shopware object and are therefore accessible everywhere in the Administration. They provide many useful shortcuts for common tasks, see all of them here in our reference section.
Accessing the Utility functions
As noted in the introduction utils in the Shopware 6 Administration are bound to the Shopware global object. Learn more about that here.
In this very short example we'll show you how to use a function of utility functions, in this case the capitalizeString function. The capitalizeString function in turn calls the lodash capitalize function wich as the name implies capitalizes strings.