Resolve #3406612
1 unresolved thread
1 unresolved thread
Closes #3406612
Merge request reports
Activity
- Resolved by Ted Bowman
added 1 commit
- 7ae1a69c - Change StatusMessages to have an option to display no messages
85 87 * @see \Drupal\Core\Messenger\Messenger::deleteByType() 86 88 */ 87 89 public static function renderMessages($type = NULL) { 90 if ($type === 'none') { 91 return []; 92 } - Comment on lines +90 to +92
This the real change it allows a new value for
#display
in the render array. Currently you can't put a StatusMessages element on the page without it rendering the messages that messages service knows about. The other option I think would be another element type that only added the mark up but didn't render the messages.You would think that
'#show_messages' => FALSE,
which\Drupal\system\Controller\BatchController::batchPage
currently adds to the page element would stop this but this not the case. As are as I can tell this only used in\Drupal\Core\Render\BareHtmlPageRenderer::renderBarePage\Drupal\Core\Render\BareHtmlPageRenderer::renderBarePage
to determine whether to add its own status messages element.
Please register or sign in to reply