function JSMessageTestController::getMessagesSelectors

Same name in other branches
  1. 9 core/modules/system/tests/modules/js_message_test/src/Controller/JSMessageTestController.php \Drupal\js_message_test\Controller\JSMessageTestController::getMessagesSelectors()
  2. 8.9.x core/modules/system/tests/modules/js_message_test/src/Controller/JSMessageTestController.php \Drupal\js_message_test\Controller\JSMessageTestController::getMessagesSelectors()
  3. 10 core/modules/system/tests/modules/js_message_test/src/Controller/JSMessageTestController.php \Drupal\js_message_test\Controller\JSMessageTestController::getMessagesSelectors()

Gets the test messages selectors.

Return value

string[] The test messages selectors.

See also

core/modules/system/tests/themes/test_messages/templates/status-messages.html.twig

3 calls to JSMessageTestController::getMessagesSelectors()
JsMessageTest::testAddRemoveMessages in core/tests/Drupal/FunctionalJavascriptTests/Core/JsMessageTest.php
Tests click on links to show messages and remove messages.
JSMessageTestController::messageLinks in core/modules/system/tests/modules/js_message_test/src/Controller/JSMessageTestController.php
Displays links to show messages via JavaScript.
OliveroMessagesTest::testDataDrupalSelectors in core/tests/Drupal/FunctionalJavascriptTests/Theme/OliveroMessagesTest.php
Tests data-drupal-selector="messages" exists.

File

core/modules/system/tests/modules/js_message_test/src/Controller/JSMessageTestController.php, line 30

Class

JSMessageTestController
Test Controller to show message links.

Namespace

Drupal\js_message_test\Controller

Code

public static function getMessagesSelectors() {
    return [
        '',
        '[data-drupal-messages-other]',
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.