public function IpBanAdmin::validateForm in IP Ban 8
Form validation handler.
Parameters
array $form: An associative array containing the structure of the form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Overrides FormBase::validateForm
File
- src/
Form/ IpBanAdmin.php, line 169
Class
Namespace
Drupal\ip_ban\FormCode
public function validateForm(array &$form, FormStateInterface $form_state) {
$this
->iPBanValidatePaths('ip_ban_readonly_path', Html::escape($form_state
->getValue('ip_ban_readonly_path')), $form, $form_state);
$this
->iPBanValidatePaths('ip_ban_completeban_path', Html::escape($form_state
->getValue('ip_ban_completeban_path')), $form, $form_state);
$this
->iPBanValidateIPs('ip_ban_additional_ips', Html::escape($form_state
->getValue('ip_ban_additional_ips')), $form, $form_state);
$this
->iPBanValidateIPs('ip_ban_readonly_ips', Html::escape($form_state
->getValue('ip_ban_readonly_ips')), $form, $form_state);
$this
->iPBanValidateIPs('ip_ban_test_ip', Html::escape($form_state
->getValue('ip_ban_test_ip')), $form, $form_state);
}