public function Server::supportsFeature in Search API 8
Determines whether this server supports a given feature.
Parameters
string $feature: The name of the optional feature.
Return value
bool TRUE if this server supports the specified feature, FALSE otherwise.
Overrides ServerInterface::supportsFeature
File
- src/
Entity/ Server.php, line 204
Class
- Server
- Defines the search server configuration entity.
Namespace
Drupal\search_api\EntityCode
public function supportsFeature($feature) {
return in_array($feature, $this
->getSupportedFeatures());
}