You are here

public function YamlForm::getSetting in YAML Form 8

Returns the form settings for a given key.

Parameters

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

Return value

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

Overrides YamlFormInterface::getSetting

2 calls to YamlForm::getSetting()
YamlForm::getPages in src/Entity/YamlForm.php
Get form wizard pages.
YamlForm::isConfidential in src/Entity/YamlForm.php
Returns the form confidential indicator.

File

src/Entity/YamlForm.php, line 457

Class

YamlForm
Defines the form entity.

Namespace

Drupal\yamlform\Entity

Code

public function getSetting($key) {
  $settings = $this
    ->getSettings();
  return isset($settings[$key]) ? $settings[$key] : NULL;
}