You are here

public function Webform::getSettings in Webform 8.5

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

Returns the webform settings.

Return value

array A structured array containing all the webform settings.

Overrides WebformInterface::getSettings

6 calls to Webform::getSettings()
Webform::buildPages in src/Entity/Webform.php
Build and cache a webform's wizard pages based on the current operation.
Webform::getSetting in src/Entity/Webform.php
Returns the webform settings for a given key.
Webform::hasPage in src/Entity/Webform.php
Determine if the webform has page or is attached to other entities.
Webform::invokeHandlers in src/Entity/Webform.php
Invoke a handlers method.
Webform::isResultsDisabled in src/Entity/Webform.php
Determine if the saving of submissions is disabled.

... See full list

File

src/Entity/Webform.php, line 962

Class

Webform
Defines the webform entity.

Namespace

Drupal\webform\Entity

Code

public function getSettings() {

  // Settings should not be empty even.
  // https://www.drupal.org/node/2880392.
  return isset($this->settings) ? $this->settings + static::getDefaultSettings() : static::getDefaultSettings();
}