You are here

protected function RemotePostWebformHandler::isConvertEnabled in Webform 6.x

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

Determine if converting anonymous submissions to authenticated is enabled.

Return value

bool TRUE if converting anonymous submissions to authenticated is enabled.

2 calls to RemotePostWebformHandler::isConvertEnabled()
RemotePostWebformHandler::buildConfigurationForm in src/Plugin/WebformHandler/RemotePostWebformHandler.php
Form constructor.
RemotePostWebformHandler::getSummary in src/Plugin/WebformHandler/RemotePostWebformHandler.php
Returns a render array summarizing the configuration of the webform handler.

File

src/Plugin/WebformHandler/RemotePostWebformHandler.php, line 854

Class

RemotePostWebformHandler
Webform submission remote post handler.

Namespace

Drupal\webform\Plugin\WebformHandler

Code

protected function isConvertEnabled() {
  return $this
    ->isDraftEnabled() && $this
    ->getWebform()
    ->getSetting('form_convert_anonymous') === TRUE;
}