You are here

public function TrailingSlashOutboundPathProcessor::isPathInListWithTrailingSlash in Trailing Slash 8

Parameters

$path:

Return value

bool

1 call to TrailingSlashOutboundPathProcessor::isPathInListWithTrailingSlash()
TrailingSlashOutboundPathProcessor::isPathWithTrailingSlash in src/PathProcessor/TrailingSlashOutboundPathProcessor.php

File

src/PathProcessor/TrailingSlashOutboundPathProcessor.php, line 124

Class

TrailingSlashOutboundPathProcessor
Class TrailingSlashOutboundPathProcessor.

Namespace

Drupal\trailing_slash\PathProcessor

Code

public function isPathInListWithTrailingSlash($path) : bool {
  $paths = TrailingSlashSettingsHelper::getActivePaths();
  return in_array($path, $paths);
}