Plugin Environment Variable $this->moduleId


The id of the currently running Module, from the modules table.

Where You Can Use It

Can be used in methods called by plugins. From Zenario 7.0.0 onwards.

You can also access this variables from your JavaScript code using syntax of the form:


where module_class_name is your Module's class name.


It may be helpful to know the current Module id for debugging purposes. However this variable should not be used in your logic.