You are here

protected function RemotePostWebformHandler::isDraftEnabled in Webform 6.x

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

Determine if saving of draft is enabled.

Return value

bool TRUE if saving of draft is enabled.

3 calls to RemotePostWebformHandler::isDraftEnabled()
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.
RemotePostWebformHandler::isConvertEnabled in src/Plugin/WebformHandler/RemotePostWebformHandler.php
Determine if converting anonymous submissions to authenticated is enabled.

File

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

Class

RemotePostWebformHandler
Webform submission remote post handler.

Namespace

Drupal\webform\Plugin\WebformHandler

Code

protected function isDraftEnabled() {
  return $this
    ->isResultsEnabled() && $this
    ->getWebform()
    ->getSetting('draft') !== WebformInterface::DRAFT_NONE;
}