/**
  * @see SpecialModifyEntity::validateInput()
  *
  * @return bool
  */
 protected function validateInput()
 {
     $request = $this->getRequest();
     if (!$this->isValidSiteId($this->site)) {
         return false;
     }
     if (!parent::validateInput()) {
         return false;
     }
     // If the user just enters an item id and a site, dont remove the site link.
     // The user can remove the site link in the second form where it has to be
     // actually removed. This prevents users from removing site links accidentally.
     if (!$request->getCheck('remove') && $this->page === '') {
         $this->page = null;
         return false;
     }
     return true;
 }
 /**
  * @see SpecialModifyEntity::validateInput()
  *
  * @return bool
  */
 protected function validateInput()
 {
     $request = $this->getRequest();
     if (!parent::validateInput()) {
         return false;
     }
     if (!$this->entityRevision->getEntity() instanceof FingerprintProvider) {
         return false;
     }
     try {
         $this->checkTermChangePermissions($this->entityRevision->getEntity());
     } catch (PermissionsError $e) {
         $this->showErrorHTML($this->msg('permissionserrors') . ': ' . $e->permission);
         return false;
     }
     // If the user just enters an item id and a language, dont remove the term.
     // The user can remove the term in the second form where it has to be
     // actually removed. This prevents users from removing terms accidentally.
     if (!$request->getCheck('remove') && $this->value === '') {
         $this->value = null;
         return false;
     }
     return true;
 }
 /**
  * @see SpecialModifyEntity::validateInput
  *
  * @return bool
  */
 protected function validateInput()
 {
     return parent::validateInput() && $this->entityRevision->getEntity() instanceof FingerprintProvider && $this->isValidLanguageCode($this->languageCode) && $this->wasPostedWithLabelDescriptionOrAliases() && $this->isAllowedToChangeTerms($this->entityRevision->getEntity());
 }