isFeatureEnabled()
Overview
public boolean function isFeatureEnabled(
required string feature
, string siteTemplate
)
Returns whether or not the passed feature is currently enabled
Arguments
Name | Type | Required | Description |
---|---|---|---|
feature | string | Yes | name of the feature to check, or logical expression containing features to check, e.g. "(featurex || featurey) && featurez" |
siteTemplate | string | No | current active site template - can be used to check features that can be site template specific |