diff --git a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php index aecf0f9..2a34f1e 100644 --- a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php +++ b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php @@ -113,7 +113,7 @@ * * @return \Drupal\Core\Path\PathValidatorInterface */ - protected $path_validator; + protected $pathValidator; /** * Overrides Drupal\views\Plugin\views\HandlerBase::init(). @@ -1479,7 +1479,7 @@ protected function renderAsLink($alter, $text, $tokens) { // Check to see if we have a routable path, so path processors run, // otherise use is as-is. if ($i = strpos($path, 'base:') === 0) { - if (!$final_url = $this->getpathValidator()->getUrlIfValidWithoutAccessCheck(substr($url['path'], 5))) { + if (!$final_url = $this->getPathValidator()->getUrlIfValidWithoutAccessCheck(substr($url['path'], 5))) { $final_url = CoreUrl::fromUri($path, $options); } else { @@ -1760,16 +1760,16 @@ protected function getRenderer() { } /** - * Returns the path validator.. + * Returns the path validator. * * @return \Drupal\Core\Path\PathValidatorInterface */ - protected function getpathValidator() { - if (!isset($this->path_validator)) { - $this->path_validator = \Drupal::service('path.validator'); + protected function getPathValidator() { + if (!isset($this->pathValidator)) { + $this->pathValidator = \Drupal::pathValidator(); } - return $this->path_validator; + return $this->pathValidator; } }