public function DataTypeHelperInterface::isTextType in Search API 8
Determines whether fields of the given type contain fulltext data.
Parameters
string $type: The type to check.
string[] $textTypes: (optional) An array of types to be considered as text.
Return value
bool TRUE if $type is one of the specified types, FALSE otherwise.
1 method overrides DataTypeHelperInterface::isTextType()
- DataTypeHelper::isTextType in src/
Utility/ DataTypeHelper.php - Determines whether fields of the given type contain fulltext data.
File
- src/
Utility/ DataTypeHelperInterface.php, line 23
Class
- DataTypeHelperInterface
- Provides an interface for implementations of the data type helper service.
Namespace
Drupal\search_api\UtilityCode
public function isTextType($type, array $textTypes = [
'text',
]);