protected function YamlFormTest::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 YamlFormTest::displayMessage()
- YamlFormTest::formatHtml in tests/
modules/ yamlform_test/ src/ Plugin/ YamlFormElement/ YamlFormTest.php - Format an element's value as HTML.
- YamlFormTest::formatText in tests/
modules/ yamlform_test/ src/ Plugin/ YamlFormElement/ YamlFormTest.php - Format an element's value as plain text.
- YamlFormTest::postCreate in tests/
modules/ yamlform_test/ src/ Plugin/ YamlFormElement/ YamlFormTest.php - Acts on a form submission element after it is created.
- YamlFormTest::postDelete in tests/
modules/ yamlform_test/ src/ Plugin/ YamlFormElement/ YamlFormTest.php - Delete any additional value associated with an element.
- YamlFormTest::postLoad in tests/
modules/ yamlform_test/ src/ Plugin/ YamlFormElement/ YamlFormTest.php - Acts on loaded form submission.
File
- tests/
modules/ yamlform_test/ src/ Plugin/ YamlFormElement/ YamlFormTest.php, line 115
Class
- YamlFormTest
- Provides a 'yamlform_test' element.
Namespace
Drupal\yamlform_test\Plugin\YamlFormElementCode
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));
}
}