You are here

public function DataTypePluginBase::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.

Overrides DataTypeInterface::getValue

7 methods override DataTypePluginBase::getValue()
AlteringValueTestDataType::getValue in tests/search_api_test/src/Plugin/search_api/data_type/AlteringValueTestDataType.php
Converts a field value to match the data type (if needed).
BooleanDataType::getValue in src/Plugin/search_api/data_type/BooleanDataType.php
Converts a field value to match the data type (if needed).
DateDataType::getValue in src/Plugin/search_api/data_type/DateDataType.php
Converts a field value to match the data type (if needed).
DecimalDataType::getValue in src/Plugin/search_api/data_type/DecimalDataType.php
Converts a field value to match the data type (if needed).
IntegerDataType::getValue in src/Plugin/search_api/data_type/IntegerDataType.php
Converts a field value to match the data type (if needed).

... See full list

File

src/DataType/DataTypePluginBase.php, line 55

Class

DataTypePluginBase
Defines a base class from which other data type classes may extend.

Namespace

Drupal\search_api\DataType

Code

public function getValue($value) {
  return $value;
}