You are here

public function Webform::isResultsDisabled in Webform 8.5

Same name and namespace in other branches
  1. 6.x 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 719

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;
}