trackViewed() public static method

public static trackViewed ( EntityModel $entity )
$entity app\models\EntityModel
 public function authorize()
 {
     if ($this->entity()) {
         if ($this->user()->can('view', $this->entity())) {
             HistoryUtils::trackViewed($this->entity());
             return true;
         }
     } else {
         return $this->user()->can('create', $this->entityType);
     }
 }