You are here

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

Same name and namespace in other branches
  1. 8.3 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 602

Class

ServerTestForm
Use Drupal\Core\Form\FormBase;.

Namespace

Drupal\ldap_servers\Form

Code

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