You are here

public function PatternSettingTypeBase::preprocessExposedField in UI Patterns Settings 8.2

Returns the processed setting variable for an exposed field.

Parameters

\Drupal\Core\Field\FieldItemList $field: The stored value.

Return value

mixed The processed value.

Overrides PatternSettingTypeInterface::preprocessExposedField

1 method overrides PatternSettingTypeBase::preprocessExposedField()
UrlSettingType::preprocessExposedField in src/Plugin/UiPatterns/SettingType/UrlSettingType.php
Returns the processed setting variable for an exposed field.

File

src/Plugin/PatternSettingTypeBase.php, line 407

Class

PatternSettingTypeBase
Base class for UI Patterns Setting plugins.

Namespace

Drupal\ui_patterns_settings\Plugin

Code

public function preprocessExposedField(FieldItemList $items) {
  foreach ($items as $item) {
    return $item->value;
  }
}