src/Sulu/Bundle/ResourceBundle/Resource/FilterManager.php
public function isFeatureEnabled($context, $feature)
    {
        if ($this->hasContext($context) &&
            false !== array_search($feature, $this->getFeaturesForContext($context))
        ) {
            return true;
        }

        return false;
    }
public function isFeatureEnabled($context, $feature)
    {
        if ($this->hasContext($context) &&
            false !== array_search($feature, $this->getFeaturesForContext($context))
        ) {
            return true;
        }

        return false;
    }
public function isFeatureEnabled ( $ context , $ feature ) { if ( $ this -> hasContext ( $ context ) && false !== array_search ( $ feature , $ this -> getFeaturesForContext ( $ context ) ) ) { return true ; } return false ; }
Checks if a feature is enabled for a context.

@param $context
@param $feature

@return bool
Checks if a feature is enabled for a context .