You are here

protected function WebformWizardPage::getDefaultSettings in Webform 8.5

Get default from webform or global settings.

Parameters

\Drupal\webform\WebformInterface $webform: A webform.

string $name: The name of the setting.

Return value

string The setting's value.

Deprecated

Scheduled for removal in Webform 8.x-6.x Use \Drupal\webform\Webform::getSetting instead.

File

src/Plugin/WebformElement/WebformWizardPage.php, line 149

Class

WebformWizardPage
Provides a 'webform_wizard_page' element.

Namespace

Drupal\webform\Plugin\WebformElement

Code

protected function getDefaultSettings(WebformInterface $webform, $name) {
  return $webform
    ->getSetting($name, TRUE);
}