Plugin Environment Variable $this->instanceId


The id of the currently running instance of your Plugin, from the plugin_instances table.

Where You Can Use It

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


It may be helpful to know the currently running instance for debugging purposes, or creating data in mirror tables. However please use the setting() utility function for retrieving the values of settings.

If your Plugin is placed in a Nest, then your $this->instanceId and $this->slotName variables will be the same as every other Plugin in the nest, but your $this->containerId and $this->eggId variables will be different.