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
/
FormTestObject.php
diff --git
a/web/core/modules/system/tests/modules/form_test/src/FormTestObject.php
b/web/core/modules/system/tests/modules/form_test/src/FormTestObject.php
index d7fd119c750a2ba2c592f86c8b437a7560acdc6e..3db579e9438b6c9940edb7ea28cd7e23e66ebac8 100644
(file)
--- a/
web/core/modules/system/tests/modules/form_test/src/FormTestObject.php
+++ b/
web/core/modules/system/tests/modules/form_test/src/FormTestObject.php
@@
-57,14
+57,14
@@
class FormTestObject 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 FormTestObject::validateForm() method was used for this form.'));
+
$this->messenger()->addStatus
($this->t('The FormTestObject::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 FormTestObject::submitForm() method was used for this form.'));
+
$this->messenger()->addStatus
($this->t('The FormTestObject::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();