You are here

private function ServerTestForm::booleanResult in Lightweight Directory Access Protocol (LDAP) 8.3

Same name and namespace in other branches
  1. 8.4 ldap_servers/src/Form/ServerTestForm.php \Drupal\ldap_servers\Form\ServerTestForm::booleanResult()

Boolean result message.

Parameters

bool $input: State.

Return value

\Drupal\Core\StringTranslation\TranslatableMarkup Output message.

1 call to ServerTestForm::booleanResult()
ServerTestForm::testWritableGroup in ldap_servers/src/Form/ServerTestForm.php
Test writable groups.

File

ldap_servers/src/Form/ServerTestForm.php, line 493

Class

ServerTestForm
Use Drupal\Core\Form\FormBase;.

Namespace

Drupal\ldap_servers\Form

Code

private function booleanResult($input) {
  if ($input) {
    return $this
      ->t('PASS');
  }
  else {
    return $this
      ->t('FAIL');
  }
}