public function PatternSettingTypeBase::preprocess in UI Patterns Settings 8.2
Same name and namespace in other branches
- 8 src/Plugin/PatternSettingTypeBase.php \Drupal\ui_patterns_settings\Plugin\PatternSettingTypeBase::preprocess()
Returns the processed setting variable.
Parameters
string $value: The stored value.
array $context: Context informations.
Return value
mixed The processed value.
Overrides PatternSettingTypeInterface::preprocess
1 call to PatternSettingTypeBase::preprocess()
- AttributesSettingType::preprocess in src/
Plugin/ UiPatterns/ SettingType/ AttributesSettingType.php - Returns the processed setting variable.
1 method overrides PatternSettingTypeBase::preprocess()
- AttributesSettingType::preprocess in src/
Plugin/ UiPatterns/ SettingType/ AttributesSettingType.php - Returns the processed setting variable.
File
- src/
Plugin/ PatternSettingTypeBase.php, line 187
Class
- PatternSettingTypeBase
- Base class for UI Patterns Setting plugins.
Namespace
Drupal\ui_patterns_settings\PluginCode
public function preprocess($value, array $context) {
$def = $this
->getPatternSettingDefinition();
$value = $this
->settingsPreprocess($value, $context, $def);
return $value;
}