summaryrefslogtreecommitdiffstats
path: root/core/modules/views/tests/modules/views_test_data/src/Plugin/views/field/FieldFormButtonTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/views/tests/modules/views_test_data/src/Plugin/views/field/FieldFormButtonTest.php')
-rw-r--r--core/modules/views/tests/modules/views_test_data/src/Plugin/views/field/FieldFormButtonTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/field/FieldFormButtonTest.php b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/field/FieldFormButtonTest.php
index ee961ce..a5d6b4d 100644
--- a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/field/FieldFormButtonTest.php
+++ b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/field/FieldFormButtonTest.php
@@ -3,6 +3,7 @@
namespace Drupal\views_test_data\Plugin\views\field;
use Drupal\Core\Form\FormStateInterface;
+use Drupal\Core\Messenger\MessengerTrait;
use Drupal\views\Plugin\views\field\FieldPluginBase;
use Drupal\views\Plugin\views\field\UncacheableFieldHandlerTrait;
use Drupal\views\ResultRow;
@@ -16,6 +17,7 @@ use Drupal\views\ResultRow;
*/
class FieldFormButtonTest extends FieldPluginBase {
+ use MessengerTrait;
use UncacheableFieldHandlerTrait;
/**
@@ -68,7 +70,7 @@ class FieldFormButtonTest extends FieldPluginBase {
if (!empty($triggering_element['#test_button'])) {
$row_index = $triggering_element['#row_index'];
$view_args = !empty($this->view->args) ? implode(', ', $this->view->args) : $this->t('no arguments');
- drupal_set_message($this->t('The test button at row @row_index for @view_id (@display) View with args: @args was submitted.', [
+ $this->messenger()->addStatus($this->t('The test button at row @row_index for @view_id (@display) View with args: @args was submitted.', [
'@display' => $this->view->current_display,
'@view_id' => $this->view->id(),
'@args' => $view_args,