Contribution Date
Technology
Contribution Project
Contribution Details
Thanks for working on this.
- $redirect = \Drupal::pathValidator()->getUrlIfValid($options['path']);
+ $redirect = \Drupal::service('path.validator')->getUrlIfValid($options['path']);
It's not just replacing \Drupal::pathValidator() with \Drupal::service('path.validator') , but
It's to replace \Drupal::pathValidator() and \Drupal::service('path.validator') with IoC injection where possible.
Kindly see the Parent issue for more info.
Contribution Issue Link
Contribution Link
Files count
0
Patches count
0