protected function ComputedFormatterBase::prepareValue in Computed Field 3.x
Same name and namespace in other branches
- 8.2 src/Plugin/Field/FieldFormatter/ComputedFormatterBase.php \Drupal\computed_field\Plugin\Field\FieldFormatter\ComputedFormatterBase::prepareValue()
Do something with the value before displaying it.
Parameters
mixed $value:
Return value
mixed
1 call to ComputedFormatterBase::prepareValue()
- ComputedFormatterBase::viewElements in src/
Plugin/ Field/ FieldFormatter/ ComputedFormatterBase.php - Builds a renderable array for a field value.
1 method overrides ComputedFormatterBase::prepareValue()
- ComputedStringFormatter::prepareValue in src/
Plugin/ Field/ FieldFormatter/ ComputedStringFormatter.php - @inheritdoc
File
- src/
Plugin/ Field/ FieldFormatter/ ComputedFormatterBase.php, line 58
Class
- ComputedFormatterBase
- Base class for cached computed fields formatter.
Namespace
Drupal\computed_field\Plugin\Field\FieldFormatterCode
protected function prepareValue($value) {
return $value;
}