public function calculateHash()
    {
        $fullArray = $this->toArray();
        $configurationArray = [
            'view'     => $fullArray['view'],
            'settings' => $fullArray['settings']
        ];

        $this->hash = HashService::get()->getHash(serialize($configurationArray));
    }
public function calculateHash()
    {
        $fullArray = $this->toArray();
        $configurationArray = [
            'view'     => $fullArray['view'],
            'settings' => $fullArray['settings']
        ];

        $this->hash = HashService::get()->getHash(serialize($configurationArray));
    }
public function calculateHash ( ) { $ fullArray = $ this -> toArray ( ) ; $ configurationArray = [ 'view' => $ fullArray [ 'view' ] , 'settings' => $ fullArray [ 'settings' ] ] ; $ this -> hash = HashService :: get ( ) -> getHash ( serialize ( $ configurationArray ) ) ; }
Calculates a hash for this configuration, which can be used as a unique
identifier. It should be called once, before the configuration is put in
cache, so it is not needed to call it again after being fetched from
cache.
Calculates a hash for this configuration which can be used as a unique identifier . It should be called once before the configuration is put in cache so it is not needed to call it again after being fetched from cache .