You are here

protected function IgnoredPathsTrait::getPathMatcher in Automatic Updates 8

Get the path matcher service.

Return value

\Drupal\Core\Path\PathMatcherInterface The path matcher.

File

src/IgnoredPathsTrait.php, line 46

Class

IgnoredPathsTrait
Provide a helper to check if file paths are ignored.

Namespace

Drupal\automatic_updates

Code

protected function getPathMatcher() {
  if (isset($this->pathMatcher)) {
    return $this->pathMatcher;
  }
  return \Drupal::service('path.matcher');
}