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
/
FormTestServiceObject.php
diff --git
a/web/core/modules/system/tests/modules/form_test/src/FormTestServiceObject.php
b/web/core/modules/system/tests/modules/form_test/src/FormTestServiceObject.php
index c1d8555552d9e89582ecd688f811fd15c7f1a152..f4a89bf9fd4eb8dbe22ea83ed12089744f8da617 100644
(file)
--- a/
web/core/modules/system/tests/modules/form_test/src/FormTestServiceObject.php
+++ b/
web/core/modules/system/tests/modules/form_test/src/FormTestServiceObject.php
@@
-50,14
+50,14
@@
class FormTestServiceObject 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 FormTestServiceObject::validateForm() method was used for this form.'));
+
$this->messenger()->addStatus
($this->t('The FormTestServiceObject::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 FormTestServiceObject::submitForm() method was used for this form.'));
+
$this->messenger()->addStatus
($this->t('The FormTestServiceObject::submitForm() method was used for this form.'));
$this->config('form_test.object', FALSE)
->set('bananas', $form_state->getValue('bananas'))
->save();
$this->config('form_test.object', FALSE)
->set('bananas', $form_state->getValue('bananas'))
->save();