hashAttributes() public method

Hash attributes that should be hashed.
public hashAttributes ( )
Example #1
0
 /**
  * Check if hashing is enabled and then hash the attributes
  * that need hashing.
  *
  * @param Esensi\Model\Contracts\HashingModelInterface $model
  * @param string                                       $event name
  */
 protected function performHashing(HashingModelInterface $model, $event)
 {
     if ($model->getHashing()) {
         $model->hashAttributes();
     }
 }