/**
  * Renders the delete action button for the current record.
  * @param \class_model|\interface_model $objListEntry
  * @return string
  */
 protected function renderDeleteAction(interface_model $objListEntry)
 {
     if ($objListEntry->getIntRecordDeleted() == 1) {
         return "";
     }
     if ($objListEntry->rightDelete()) {
         $objLockmanager = $objListEntry->getLockManager();
         if (!$objLockmanager->isAccessibleForCurrentUser()) {
             return $this->objToolkit->listButton(class_adminskin_helper::getAdminImage("icon_deleteLocked", $this->getLang("commons_locked")));
         }
         return $this->objToolkit->listDeleteButton(strip_tags($objListEntry->getStrDisplayName()), $this->getLang($this->getObjLang()->stringToPlaceholder($this->getActionNameForClass("delete", $objListEntry) . "_question"), $objListEntry->getArrModule("modul")), class_link::getLinkAdminHref($objListEntry->getArrModule("modul"), $this->getActionNameForClass("delete", $objListEntry), "&systemid=" . $objListEntry->getSystemid() . $this->strPeAddon));
     }
     return "";
 }