public function SearchTextProcessorInterface::process in Drupal 9
Same name and namespace in other branches
- 10 core/modules/search/src/SearchTextProcessorInterface.php \Drupal\search\SearchTextProcessorInterface::process()
Processes text into words for indexing.
Parameters
string $text: Text to process.
string|null $langcode: Language code for the language of $text, if known.
Return value
array Array of words in the simplified, preprocessed text.
See also
\Drupal\search\SearchTextProcessorInterface::analyze()
1 method overrides SearchTextProcessorInterface::process()
- SearchTextProcessor::process in core/
modules/ search/ src/ SearchTextProcessor.php - Processes text into words for indexing.
File
- core/
modules/ search/ src/ SearchTextProcessorInterface.php, line 79
Class
- SearchTextProcessorInterface
- Processes search text for indexing.
Namespace
Drupal\searchCode
public function process(string $text, ?string $langcode = NULL) : array;