You are here

public function WebformVariantBase::getSummary in Webform 8.5

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

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

Return value

array A render array.

Overrides WebformVariantInterface::getSummary

1 method overrides WebformVariantBase::getSummary()
BrokenWebformVariant::getSummary in src/Plugin/WebformVariant/BrokenWebformVariant.php
Returns a render array summarizing the configuration of the webform variant.

File

src/Plugin/WebformVariantBase.php, line 117

Class

WebformVariantBase
Provides a base class for a webform variant.

Namespace

Drupal\webform\Plugin

Code

public function getSummary() {
  return [
    '#theme' => 'webform_variant_' . $this->pluginId . '_summary',
    '#settings' => $this->configuration,
    '#variant' => $this,
  ];
}