You are here

protected function ComputedFormatterBase::prepareValue in Computed Field 8.2

Same name and namespace in other branches
  1. 3.x 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\FieldFormatter

Code

protected function prepareValue($value) {
  return $value;
}