Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Broken.php

function 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 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;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal