private function ServerTestForm::booleanResult in Lightweight Directory Access Protocol (LDAP) 8.3
Same name and namespace in other branches
- 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
Namespace
Drupal\ldap_servers\FormCode
private function booleanResult($input) {
if ($input) {
return $this
->t('PASS');
}
else {
return $this
->t('FAIL');
}
}