function SystemMessagesBlock::build
Same name in other branches
- 9 core/modules/system/src/Plugin/Block/SystemMessagesBlock.php \Drupal\system\Plugin\Block\SystemMessagesBlock::build()
- 8.9.x core/modules/system/src/Plugin/Block/SystemMessagesBlock.php \Drupal\system\Plugin\Block\SystemMessagesBlock::build()
- 11.x core/modules/system/src/Plugin/Block/SystemMessagesBlock.php \Drupal\system\Plugin\Block\SystemMessagesBlock::build()
Overrides BlockPluginInterface::build
File
-
core/
modules/ system/ src/ Plugin/ Block/ SystemMessagesBlock.php, line 34
Class
- SystemMessagesBlock
- Provides a block to display the messages.
Namespace
Drupal\system\Plugin\BlockCode
public function build() {
return [
'#type' => 'status_messages',
'#include_fallback' => TRUE,
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.