Issue #3425294: Remove deprecations for UrlGenerator methods
5 unresolved threads
Closes #3425294
Merge request reports
Activity
128 128 public function getPathFromRoute($name, $parameters = []) { 129 129 $route = $this->getRoute($name); 130 130 if (!is_string($name)) { 131 @trigger_error('Passing a route object to ' . __METHOD__ . '() is deprecated in drupal:10.1.0 and will not be supported in drupal:11.0.0. Pass the route name instead. See https://www.drupal.org/node/3172280', E_USER_DEPRECATED); added 1 commit
- cd7f9100 - removed mentions of Symfony route in all functions and add a type string hint
419 411 /** 420 412 * Find the route using the provided route name. 421 413 * 422 * @param string|\Symfony\Component\Routing\Route $name 423 * The route name or a route object. 414 * @param string $name 415 * The route name changed this line in version 5 of the diff
230 226 /** 231 227 * Gets the path of a route. 232 228 * 233 * @param $name 229 * @param string $name 234 230 * The route name or other debug message. - Edited by Dave Long
changed this line in version 5 of the diff
33 33 * substituted for them in the pattern. Extra params are added as query 34 34 * strings to the URL. 35 35 * 36 * @param string|\Symfony\Component\Routing\Route $name 37 * The route name or a route object. 36 * @param string $name 37 * The route name changed this line in version 5 of the diff
14 14 /** 15 15 * Gets the internal path (system path) for a route. 16 16 * 17 * @param string|\Symfony\Component\Routing\Route $name 18 * The route name or a route object. 17 * @param string $name 18 * The route name changed this line in version 5 of the diff
added 1 commit
- 4848a447 - ::generate() is allowed to be boolean in Drupal.
Please register or sign in to reply