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
2 files
+ 19
0
Compare changes
  • Side-by-side
  • Inline
Files
2
  • afc9dc2c
    Issue #3308507 by neclimdul, Spokje, longwave: Remove Cache::keyFromQuery · afc9dc2c
    catch authored
@@ -136,6 +136,11 @@ public static function getBins() {
@@ -136,6 +136,11 @@ public static function getBins() {
* call this function. Executing the query and formatting results should
* call this function. Executing the query and formatting results should
* happen in a #pre_render callback.
* happen in a #pre_render callback.
*
*
 
* @deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. No
 
* replacement provided.
 
*
 
* @see https://www.drupal.org/node/3308507
 
*
* @param \Drupal\Core\Database\Query\SelectInterface $query
* @param \Drupal\Core\Database\Query\SelectInterface $query
* A select query object.
* A select query object.
*
*
@@ -143,6 +148,7 @@ public static function getBins() {
@@ -143,6 +148,7 @@ public static function getBins() {
* A hash of the query arguments.
* A hash of the query arguments.
*/
*/
public static function keyFromQuery(SelectInterface $query) {
public static function keyFromQuery(SelectInterface $query) {
 
@trigger_error(__METHOD__ . ' is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. No replacement provided. https://www.drupal.org/node/3322044', E_USER_DEPRECATED);
$query->preExecute();
$query->preExecute();
$keys = [(string) $query, $query->getArguments()];
$keys = [(string) $query, $query->getArguments()];
return hash('sha256', serialize($keys));
return hash('sha256', serialize($keys));
Loading