public static function MessageTest::argumentCallback in Message 8
Test callback method for ::testGetTextArgumentProcessing().
File
- tests/
src/ Kernel/ MessageTest.php, line 227
Class
- MessageTest
- Kernel tests for the Message entity.
Namespace
Drupal\Tests\message\KernelCode
public static function argumentCallback($arg_1, MessageInterface $message = NULL) {
if ($message) {
// Use the message ID appended to replacement text.
$text = $arg_1 . '_' . $message
->id();
}
else {
$text = $arg_1;
}
return $text;
}