Checks if a widget feature is enabled or not.
string $feature: Feature name to check.
bool TRUE if the feature is enabled, otherwise FALSE.
protected function isFeatureEnabled($feature) {
$features = $this
->getSetting('features');
if (!empty($features[$feature])) {
return TRUE;
}
return FALSE;
}