You are here

public function WebformInterface::getSetting in Webform 8.5

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

Returns the webform settings for a given key.

Parameters

string $key: The key of the setting to retrieve.

bool $default: Flag to lookup the default settings from 'webform.settings' config. Only used when rendering webform.

Return value

mixed The settings value, or NULL if no settings exists.

1 method overrides WebformInterface::getSetting()
Webform::getSetting in src/Entity/Webform.php
Returns the webform settings for a given key.

File

src/WebformInterface.php, line 560

Class

WebformInterface
Provides an interface defining a webform entity.

Namespace

Drupal\webform

Code

public function getSetting($key, $default = FALSE);