public function AutocompleteHelperInterface::splitKeys in Search API Autocomplete 8
Splits a string with search keywords into two parts.
The first part consists of all words the user has typed completely, the second one contains the beginning of the last, possibly incomplete word.
Parameters
string $keys: The passed in keys.
Return value
string[] An array with $keys split into exactly two parts, both of which may be empty.
1 method overrides AutocompleteHelperInterface::splitKeys()
- AutocompleteHelper::splitKeys in src/
Utility/ AutocompleteHelper.php - Splits a string with search keywords into two parts.
File
- src/
Utility/ AutocompleteHelperInterface.php, line 27
Class
- AutocompleteHelperInterface
- Provides an interface for the autocomplete helper service.
Namespace
Drupal\search_api_autocomplete\UtilityCode
public function splitKeys($keys);