protected function TestYamlFormHandler::displayMessage in YAML Form 8
Display the invoked plugin method to end user.
Parameters
string $method_name: The invoked method name.
string $context1: Additional parameter passed to the invoked method name.
12 calls to TestYamlFormHandler::displayMessage()
- TestYamlFormHandler::alterElements in tests/
modules/ yamlform_test/ src/ Plugin/ YamlFormHandler/ TestYamlFormHandler.php - Alter form submission form elements.
- TestYamlFormHandler::alterForm in tests/
modules/ yamlform_test/ src/ Plugin/ YamlFormHandler/ TestYamlFormHandler.php - Alter form submission form .
- TestYamlFormHandler::confirmForm in tests/
modules/ yamlform_test/ src/ Plugin/ YamlFormHandler/ TestYamlFormHandler.php - Confirm form submission form.
- TestYamlFormHandler::postCreate in tests/
modules/ yamlform_test/ src/ Plugin/ YamlFormHandler/ TestYamlFormHandler.php - Acts on a form submission after it is created.
- TestYamlFormHandler::postDelete in tests/
modules/ yamlform_test/ src/ Plugin/ YamlFormHandler/ TestYamlFormHandler.php - Acts on deleted a form submission before the delete hook is invoked.
File
- tests/
modules/ yamlform_test/ src/ Plugin/ YamlFormHandler/ TestYamlFormHandler.php, line 151
Class
- TestYamlFormHandler
- Form submission test handler.
Namespace
Drupal\yamlform_test\Plugin\YamlFormHandlerCode
protected function displayMessage($method_name, $context1 = NULL) {
if (PHP_SAPI != 'cli') {
$t_args = [
'@class_name' => get_class($this),
'@method_name' => $method_name,
'@context1' => $context1,
];
drupal_set_message($this
->t('Invoked: @class_name:@method_name @context1', $t_args), 'status', TRUE);
\Drupal::logger('yamlform.test')
->notice('Invoked: @class_name:@method_name @context1', $t_args);
}
}