public static function JSMessageTestController::getMessagesSelectors in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/js_message_test/src/Controller/JSMessageTestController.php \Drupal\js_message_test\Controller\JSMessageTestController::getMessagesSelectors()
- 9 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 28
Class
- JSMessageTestController
- Test Controller to show message links.
Namespace
Drupal\js_message_test\ControllerCode
public static function getMessagesSelectors() {
return [
'',
'[data-drupal-messages-other]',
];
}