You are here

public function BrokenWebformHandler::getSummary in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformHandler/BrokenWebformHandler.php \Drupal\webform\Plugin\WebformHandler\BrokenWebformHandler::getSummary()

Returns a render array summarizing the configuration of the webform handler.

Return value

array A render array.

Overrides WebformHandlerBase::getSummary

File

src/Plugin/WebformHandler/BrokenWebformHandler.php, line 32

Class

BrokenWebformHandler
Defines a fallback plugin for missing webform handler plugins.

Namespace

Drupal\webform\Plugin\WebformHandler

Code

public function getSummary() {
  $t_args = [
    '%plugin_id' => $this
      ->getPluginId(),
  ];
  return [
    'message' => [
      '#markup' => $this
        ->t('This %plugin_id handler is broken or missing. You might need to enable the original module and/or clear the cache.', $t_args),
    ],
  ];
}