private function AdminSettingsForm::setFormMessage in Acquia Lift Connector 8.4
Same name and namespace in other branches
- 8.3 src/Form/AdminSettingsForm.php \Drupal\acquia_lift\Form\AdminSettingsForm::setFormMessage()
Sets form message.
Parameters
string $message: Message to show on form.
string $type: Type of the message to show on form.
2 calls to AdminSettingsForm::setFormMessage()
- AdminSettingsForm::checkConnection in src/
Form/ AdminSettingsForm.php - Check URL's connection.
- AdminSettingsForm::preValidateData in src/
Form/ AdminSettingsForm.php - Pre-validate data.
File
- src/
Form/ AdminSettingsForm.php, line 671
Class
- AdminSettingsForm
- Defines a form that configures settings.
Namespace
Drupal\acquia_lift\FormCode
private function setFormMessage($message, $type) {
$messengerFunctionName = 'add' . ucwords($type);
$this->messenger
->{$messengerFunctionName}($message);
}