setting()
public final function setting($name)
Checks the value of a setting for this Plugin.
Can be used in methods called by plugins. From Zenario 7.0.0 onwards.
Retrieves the values of one of your Plugin's settings defined in your Plugin's description.xml
.
Note that the CMS won't run any validation of this value; you should validate it yourself if needed.
$name
The name of the setting to look up.
The value of the setting requested.
if ($this->setting('enable_feature_x')) { $this->featureX(); }
Here a method is executed if a setting evaluates to true.