luya\traits\CacheableTrait::isCachable PHP Method

isCachable() public method

Check if the current configuration of the application and the property allows a caching of the language container data.
public isCachable ( ) : boolean
return boolean
    public function isCachable()
    {
        if ($this->_cachable === null) {
            $this->_cachable = $this->cacheEnabled && Yii::$app->has('cache') ? true : false;
        }
        return $this->_cachable;
    }