diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php index c8dc1f49fcfcb08a38b36d8bfc61b1ce307b60d4..206783fe12b0be28f67aeff3ee82e0f80d2909a6 100644 --- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php @@ -1868,7 +1868,7 @@ public function validateOptionsForm(&$form, FormStateInterface $form_state) { case 'display_id': if ($form_state->getValue('display_id')) { if (preg_match('/[^a-z0-9_]/', $form_state->getValue('display_id'))) { - $form_state->setError($form['display_id'], $this->t('Display name must be letters, numbers, or underscores only.')); + $form_state->setError($form['display_id'], $this->t('Display machine name must contain only lowercase letters, numbers, or underscores.')); } foreach ($this->view->displayHandlers as $id => $display) { diff --git a/core/modules/views_ui/tests/src/Functional/ViewEditTest.php b/core/modules/views_ui/tests/src/Functional/ViewEditTest.php index 2d6069e59b5a9a2255475c6324e03a2d93a38261..b3b95858c929a234379c7f177879cf70c59ebd65 100644 --- a/core/modules/views_ui/tests/src/Functional/ViewEditTest.php +++ b/core/modules/views_ui/tests/src/Functional/ViewEditTest.php @@ -77,7 +77,7 @@ public function testOtherOptions() { // Test the form validation with invalid IDs. $machine_name_edit_url = 'admin/structure/views/nojs/display/test_view/test_1/display_id'; - $error_text = t('Display name must be letters, numbers, or underscores only.'); + $error_text = t('Display machine name must contain only lowercase letters, numbers, or underscores.'); // Test that potential invalid display ID requests are detected try {