protected function FieldTemplateProcessor::getSetting in UI Patterns 8
Get setting value or default to given value if none set.
Parameters
string $name: Setting name.
string $default: Setting default value.
Return value
mixed Setting value.
3 calls to FieldTemplateProcessor::getSetting()
- FieldTemplateProcessor::getMapping in modules/
ui_patterns_ds/ src/ FieldTemplateProcessor.php - Get mapping settings.
- FieldTemplateProcessor::getPatternId in modules/
ui_patterns_ds/ src/ FieldTemplateProcessor.php - Get Pattern ID.
- FieldTemplateProcessor::getVariant in modules/
ui_patterns_ds/ src/ FieldTemplateProcessor.php - Get mapping settings.
File
- modules/
ui_patterns_ds/ src/ FieldTemplateProcessor.php, line 119
Class
- FieldTemplateProcessor
- Class FieldTemplateProcessor.
Namespace
Drupal\ui_patterns_dsCode
protected function getSetting($name, $default = '') {
return isset($this->variables['ds-config']['settings'][$name]) ? $this->variables['ds-config']['settings'][$name] : $default;
}