public function Server::supportsDataType in Search API 8
Determines whether the backend supports a given add-on data type.
Parameters
string $type: The identifier of the add-on data type.
Return value
bool TRUE if the backend supports that data type.
Overrides BackendSpecificInterface::supportsDataType
File
- src/
Entity/ Server.php, line 231
Class
- Server
- Defines the search server configuration entity.
Namespace
Drupal\search_api\EntityCode
public function supportsDataType($type) {
if ($this
->hasValidBackend()) {
return $this
->getBackend()
->supportsDataType($type);
}
return FALSE;
}