protected function StringMongoDBStorage::getMongoRegex in MongoDB 8
Creates a MongoDB regex
Parameters
$value:
Return value
\MongoRegex
1 call to StringMongoDBStorage::getMongoRegex()
- StringMongoDBStorage::getFilterFindArray in mongodb_locale/
src/ StringStorage.php - Creates a MongoDB find array based on conditions and filters.
File
- mongodb_locale/
src/ StringStorage.php, line 96
Class
Namespace
Drupal\mongodb_localeCode
protected function getMongoRegex($value) {
return new \MongoRegex('/' . preg_quote($value, '/') . '/');
}