protected function Broken::brokenMessage in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Block/Plugin/Block/Broken.php \Drupal\Core\Block\Plugin\Block\Broken::brokenMessage()
Generate message with debugging information as to why the block is broken.
Return value
array Render array containing debug information.
2 calls to Broken::brokenMessage()
- Broken::blockForm in core/
lib/ Drupal/ Core/ Block/ Plugin/ Block/ Broken.php - Returns the configuration form elements specific to this block plugin.
- Broken::build in core/
lib/ Drupal/ Core/ Block/ Plugin/ Block/ Broken.php - Builds and returns the renderable array for this block plugin.
File
- core/
lib/ Drupal/ Core/ Block/ Plugin/ Block/ Broken.php, line 44 - Contains \Drupal\Core\Block\Plugin\Block\Broken.
Class
- Broken
- Defines a fallback plugin for missing block plugins.
Namespace
Drupal\Core\Block\Plugin\BlockCode
protected function brokenMessage() {
$build['message'] = [
'#markup' => $this
->t('This block is broken or missing. You may be missing content or you might need to enable the original module.'),
];
return $build;
}