PathMatcherInterface::matchPath

public PathMatcherInterface::matchPath($path, $patterns)

Checks if a path matches any pattern in a set of patterns.

Parameters

string $path: The path to match.

string $patterns: A set of patterns separated by a newline.

Return value

bool TRUE if the path matches a pattern, FALSE otherwise.

File

core/lib/Drupal/Core/Path/PathMatcherInterface.php, line 21

Class

PathMatcherInterface
Provides an interface for URL path matchers.

Namespace

Drupal\Core\Path

Code

public function matchPath($path, $patterns);
doc_Drupal
2016-10-29 09:33:28
Comments
Leave a Comment

Please login to continue.