You are here

public function RemotePostYamlFormHandler::getSummary in YAML Form 8

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

Return value

array A render array.

Overrides YamlFormHandlerBase::getSummary

File

src/Plugin/YamlFormHandler/RemotePostYamlFormHandler.php, line 80

Class

RemotePostYamlFormHandler
Form submission remote post handler.

Namespace

Drupal\yamlform\Plugin\YamlFormHandler

Code

public function getSummary() {
  $configuration = $this
    ->getConfiguration();

  // If the saving of results is disabled clear update and delete URL.
  if ($this
    ->getYamlForm()
    ->getSetting('results_disabled')) {
    $configuration['settings']['update_url'] = '';
    $configuration['settings']['delete_url'] = '';
  }
  return [
    '#settings' => $configuration['settings'],
  ] + parent::getSummary();
}