You are here

public function DataTypeInterface::getValue in Search API 8

Converts a field value to match the data type (if needed).

Parameters

mixed $value: The value to convert.

Return value

mixed The converted value.

1 method overrides DataTypeInterface::getValue()
DataTypePluginBase::getValue in src/DataType/DataTypePluginBase.php
Converts a field value to match the data type (if needed).

File

src/DataType/DataTypeInterface.php, line 42

Class

DataTypeInterface
Defines an interface for data type plugins.

Namespace

Drupal\search_api\DataType

Code

public function getValue($value);