You are here

public function Webform::isResultsDisabled in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Entity/Webform.php \Drupal\webform\Entity\Webform::isResultsDisabled()

Determine if the saving of submissions is disabled.

Return value

bool TRUE if the saving of submissions is disabled.

Overrides WebformInterface::isResultsDisabled

File

src/Entity/Webform.php, line 720

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function isResultsDisabled() {
  $elements = $this
    ->getElementsDecoded();
  $settings = $this
    ->getSettings();
  return !empty($settings['results_disabled']) || !empty($elements['#method']) ? TRUE : FALSE;
}