Introducing Module Helpers
Last updated
Last updated
The module helper is an easy way to access module related information, such as configurations, handlers and more. Using the module helper can simplify your code.
Consider the common task of getting a configuration value for a module. This can get more complicated if you need this in a circumstance where your module is not the currently active module.
Here is an example of how this is done now. We have a module named “bar” and we want to get the configuration “foo”:
Here is an XMF version that accomplishes the same thing:
Here, we extend the last example to get the module's version using our XMF module helper.
See the reference section for for more about the module helper.