public function getType()
  {
    if ($this->isNotApplicable()) {
      return 'not-applicable';
    }
    if ($this->hasError()) {
      return 'error';
    }
    if ($this->isNotice()) {
      return 'notice';
    }
    if ($this->hasWarning()) {
      return 'warning';
    }
    $policy_type = $this->policy->get('type');
    if ($policy_type == 'data') {
      return 'notice';
    }
    return $this->isSuccessful() ? 'success' : 'failure';
  }