comparison core/lib/Drupal.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
80 class Drupal { 80 class Drupal {
81 81
82 /** 82 /**
83 * The current system version. 83 * The current system version.
84 */ 84 */
85 const VERSION = '8.6.10'; 85 const VERSION = '8.7.1';
86 86
87 /** 87 /**
88 * Core API compatibility. 88 * Core API compatibility.
89 */ 89 */
90 const CORE_COMPATIBILITY = '8.x'; 90 const CORE_COMPATIBILITY = '8.x';
575 * @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. 575 * @deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0.
576 * Instead create a \Drupal\Core\Url object directly, for example using 576 * Instead create a \Drupal\Core\Url object directly, for example using
577 * Url::fromRoute(). 577 * Url::fromRoute().
578 */ 578 */
579 public static function url($route_name, $route_parameters = [], $options = [], $collect_bubbleable_metadata = FALSE) { 579 public static function url($route_name, $route_parameters = [], $options = [], $collect_bubbleable_metadata = FALSE) {
580 @trigger_error('Drupal::url() is deprecated as of Drupal 8.0.x, will be removed before Drupal 9.0.0. Instead create a \Drupal\Core\Url object directly, for example using Url::fromRoute()', E_USER_DEPRECATED);
580 return static::getContainer()->get('url_generator')->generateFromRoute($route_name, $route_parameters, $options, $collect_bubbleable_metadata); 581 return static::getContainer()->get('url_generator')->generateFromRoute($route_name, $route_parameters, $options, $collect_bubbleable_metadata);
581 } 582 }
582 583
583 /** 584 /**
584 * Returns the link generator service. 585 * Returns the link generator service.