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
+ 11
7
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -311,11 +311,15 @@ public function getRouteCollection(): RouteCollection {
@@ -311,11 +311,15 @@ public function getRouteCollection(): RouteCollection {
}
}
/**
/**
* {@inheritdoc}
* This method is intentionally not implemented. Use
 
* Drupal\Core\Url instead.
 
*
 
* @see https://www.drupal.org/node/2820197
 
*
 
* @throws \BadMethodCallException
*/
*/
public function generate($name, $parameters = [], $referenceType = self::ABSOLUTE_PATH): string {
public function generate($name, $parameters = [], $referenceType = self::ABSOLUTE_PATH): string {
@trigger_error(__METHOD__ . '() is deprecated in drupal:8.3.0 and will throw an exception from drupal:10.0.0. Use the \Drupal\Core\Url object instead. See https://www.drupal.org/node/2820197', E_USER_DEPRECATED);
throw new \BadMethodCallException(__METHOD__ . '() is not supported. Use the \Drupal\Core\Url object instead. See https://www.drupal.org/node/2820197');
return $this->urlGenerator->generate($name, $parameters, $referenceType);
}
}
}
}
Loading