Skip to content
Snippets Groups Projects

Issue #3238915: Refactor (if feasible) uses of the jQuery ready function to use VanillaJS

Closed Issue #3238915: Refactor (if feasible) uses of the jQuery ready function to use VanillaJS
Closed Harumi Jang requested to merge issue/drupal-3238915:3238915-refactor-if-feasible into 9.3.x
3 files
+ 2
229
Compare changes
  • Side-by-side
  • Inline
Files
3
  • 3194ddf3
    Issue #3261239 by andypost, longwave: Remove deprecations from search module · 3194ddf3
    quietone authored
@@ -61,15 +61,11 @@ class SearchIndex implements SearchIndexInterface {
* @param \Drupal\search\SearchTextProcessorInterface $text_processor
* The text processor.
*/
public function __construct(ConfigFactoryInterface $config_factory, Connection $connection, Connection $replica, CacheTagsInvalidatorInterface $cache_tags_invalidator, SearchTextProcessorInterface $text_processor = NULL) {
public function __construct(ConfigFactoryInterface $config_factory, Connection $connection, Connection $replica, CacheTagsInvalidatorInterface $cache_tags_invalidator, SearchTextProcessorInterface $text_processor) {
$this->configFactory = $config_factory;
$this->connection = $connection;
$this->replica = $replica;
$this->cacheTagsInvalidator = $cache_tags_invalidator;
if ($text_processor === NULL) {
@trigger_error('Calling ' . __METHOD__ . ' without $text_processor argument is deprecated in drupal:9.1.0 and will be required in drupal:10.0.0. See https://www.drupal.org/node/3078162', E_USER_DEPRECATED);
$text_processor = \Drupal::service('search.text_processor');
}
$this->textProcessor = $text_processor;
}
Loading