You are here

public function PatternSettingTypeBase::settingsPreprocess in UI Patterns Settings 8

Same name and namespace in other branches
  1. 8.2 src/Plugin/PatternSettingTypeBase.php \Drupal\ui_patterns_settings\Plugin\PatternSettingTypeBase::settingsPreprocess()

Preprocess setting variable.

Parameters

string $value: The stored value.

array $context: Context informations. Keys:

  • entity.

\Drupal\ui_patterns_settings\Definition\PatternDefinitionSetting $def: The pattern definition.

Return value

string The processed value.

Overrides PatternSettingTypeInterface::settingsPreprocess

1 call to PatternSettingTypeBase::settingsPreprocess()
PatternSettingTypeBase::preprocess in src/Plugin/PatternSettingTypeBase.php
Returns the processed setting variable.
2 methods override PatternSettingTypeBase::settingsPreprocess()
CheckboxSettingType::settingsPreprocess in src/Plugin/UiPatterns/SettingType/CheckboxSettingType.php
Preprocess setting variable.
TokenSettingTypeBase::settingsPreprocess in src/Plugin/TokenSettingTypeBase.php
Preprocess setting variable.

File

src/Plugin/PatternSettingTypeBase.php, line 130

Class

PatternSettingTypeBase
Base class for UI Patterns Setting plugins.

Namespace

Drupal\ui_patterns_settings\Plugin

Code

public function settingsPreprocess($value, array $context, PatternDefinitionSetting $def) {
  return $value;
}