You are here

public function DataTypePluginBase::getFallbackType in Search API 8

Returns the fallback default data type for this data type.

Return value

string The fallback default data type.

Overrides DataTypeInterface::getFallbackType

1 method overrides DataTypePluginBase::getFallbackType()
UnsupportedTestDataType::getFallbackType in tests/search_api_test/src/Plugin/search_api/data_type/UnsupportedTestDataType.php
Returns the fallback default data type for this data type.

File

src/DataType/DataTypePluginBase.php, line 62

Class

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

Namespace

Drupal\search_api\DataType

Code

public function getFallbackType() {
  return $this->pluginDefinition['fallback_type'] ?? 'string';
}