You are here

public function RemotePostWebformHandler::getSummary in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Plugin/WebformHandler/RemotePostWebformHandler.php \Drupal\webform\Plugin\WebformHandler\RemotePostWebformHandler::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/RemotePostWebformHandler.php, line 124

Class

RemotePostWebformHandler
Webform submission remote post handler.

Namespace

Drupal\webform\Plugin\WebformHandler

Code

public function getSummary() {
  $settings = $this
    ->getSettings();
  if (!$this
    ->isResultsEnabled()) {
    $settings['updated_url'] = '';
    $settings['deleted_url'] = '';
  }
  if (!$this
    ->isDraftEnabled()) {
    $settings['draft_created_url'] = '';
    $settings['draft_updated_url'] = '';
  }
  if (!$this
    ->isConvertEnabled()) {
    $settings['converted_url'] = '';
  }
  return [
    '#settings' => $settings,
  ] + parent::getSummary();
}