projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website]
/
web
/
core
/
modules
/
system
/
tests
/
modules
/
form_test
/
src
/
FormTestArgumentsObject.php
diff --git
a/web/core/modules/system/tests/modules/form_test/src/FormTestArgumentsObject.php
b/web/core/modules/system/tests/modules/form_test/src/FormTestArgumentsObject.php
index 0d86a2d7aed4cd29ce108c74f9f4087e27ec52e6..8667ca9a653fb8c60a7b59349b8d6e212d6e8c10 100644
(file)
--- a/
web/core/modules/system/tests/modules/form_test/src/FormTestArgumentsObject.php
+++ b/
web/core/modules/system/tests/modules/form_test/src/FormTestArgumentsObject.php
@@
-50,14
+50,14
@@
class FormTestArgumentsObject extends ConfigFormBase {
* {@inheritdoc}
*/
public function validateForm(array &$form, FormStateInterface $form_state) {
* {@inheritdoc}
*/
public function validateForm(array &$form, FormStateInterface $form_state) {
-
drupal_set_message
($this->t('The FormTestArgumentsObject::validateForm() method was used for this form.'));
+
$this->messenger()->addStatus
($this->t('The FormTestArgumentsObject::validateForm() method was used for this form.'));
}
/**
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
}
/**
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
-
drupal_set_message
($this->t('The FormTestArgumentsObject::submitForm() method was used for this form.'));
+
$this->messenger()->addStatus
($this->t('The FormTestArgumentsObject::submitForm() method was used for this form.'));
$this->config('form_test.object')
->set('bananas', $form_state->getValue('bananas'))
->save();
$this->config('form_test.object')
->set('bananas', $form_state->getValue('bananas'))
->save();