/**
  * @param Contact $contact
  * @return string
  */
 public static function resolveModuleIdWithLinkContentForContactOrLead(Contact $contact)
 {
     $linkContent = null;
     if (ActionSecurityUtil::canCurrentUserPerformAction('Details', $contact)) {
         $moduleClassName = $contact->getModuleClassName();
         $moduleId = ContactWebFormsUtil::getResolvedModuleIdForContactWebFormEntry($contact);
         $linkRoute = '/' . $moduleId . '/default/details';
         $link = ActionSecurityUtil::resolveLinkToModelForCurrentUser(strval($contact), $contact, $moduleClassName, $linkRoute);
         if ($link != null) {
             $linkContent = $link;
         }
         return ZurmoHtml::tag('div', array(), $linkContent);
     }
 }