public function SystemMessagesBlock::build in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/src/Plugin/Block/SystemMessagesBlock.php \Drupal\system\Plugin\Block\SystemMessagesBlock::build()
- 9 core/modules/system/src/Plugin/Block/SystemMessagesBlock.php \Drupal\system\Plugin\Block\SystemMessagesBlock::build()
File
- core/
modules/ system/ src/ Plugin/ Block/ SystemMessagesBlock.php, line 33
Class
- SystemMessagesBlock
- Provides a block to display the messages.
Namespace
Drupal\system\Plugin\BlockCode
public function build() {
return [
'#type' => 'status_messages',
'#include_fallback' => TRUE,
];
}