Smile\ElasticsuiteTracker\Helper\Data::isEnabled PHP Method

isEnabled() public method

Return the module activation status
public isEnabled ( ) : boolean
return boolean
    public function isEnabled()
    {
        return (bool) $this->scopeConfig->getValue(self::CONFIG_IS_ENABLED_XPATH);
    }

Usage Example

Example #1
0
 /**
  * Check that the module is currently enabled
  *
  * @return bool
  */
 public function isEnabled()
 {
     return $this->trackerHelper->isEnabled();
 }