You are here

public function BrokenWebformVariant::getSummary in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/WebformVariant/BrokenWebformVariant.php \Drupal\webform\Plugin\WebformVariant\BrokenWebformVariant::getSummary()

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

Return value

array A render array.

Overrides WebformVariantBase::getSummary

File

src/Plugin/WebformVariant/BrokenWebformVariant.php, line 29

Class

BrokenWebformVariant
Defines a fallback plugin for missing webform variant plugins.

Namespace

Drupal\webform\Plugin\WebformVariant

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),
    ],
  ];
}