function Broken::brokenMessage

Same name in other branches
  1. 9 core/lib/Drupal/Core/Block/Plugin/Block/Broken.php \Drupal\Core\Block\Plugin\Block\Broken::brokenMessage()
  2. 8.9.x core/lib/Drupal/Core/Block/Plugin/Block/Broken.php \Drupal\Core\Block\Plugin\Block\Broken::brokenMessage()
  3. 10 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
Broken::build in core/lib/Drupal/Core/Block/Plugin/Block/Broken.php

File

core/lib/Drupal/Core/Block/Plugin/Block/Broken.php, line 89

Class

Broken
Defines a fallback plugin for missing block plugins.

Namespace

Drupal\Core\Block\Plugin\Block

Code

protected function brokenMessage() {
    $build['message'] = [
        '#markup' => $this->t('This block is broken or missing. You may be missing content or you might need to install the original module.'),
    ];
    return $build;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.