yii\widgets\FragmentCache::calculateKey PHP Method

calculateKey() protected method

The key generated depends on both [[id]] and [[variations]].
protected calculateKey ( ) : mixed
return mixed a valid cache key
    protected function calculateKey()
    {
        $factors = [__CLASS__, $this->getId()];
        if (is_array($this->variations)) {
            foreach ($this->variations as $factor) {
                $factors[] = $factor;
            }
        }
        return $factors;
    }