Change PathMatcher::matchPath() $patterns param from string to an array of strings

Created on 27 May 2014, about 10 years ago
Updated 17 July 2023, 11 months ago

Problem/Motivation

In #2272201: Move drupal_match_path in path.inc to a service β†’ we converted the procedural drupal_match_path and kept the implementation exactly the same. However, taking a string of patterns separated by newline isn't the best interface for this as it's tied to how the form values are submitted currently.

Proposed resolution

Convert the $pattern parameter to an array of strings.

Remaining tasks

Wait until #2272201: Move drupal_match_path in path.inc to a service β†’ goes in.

User interface changes

API changes

PathMatcher::matchPath() takes an array of strings instead of a string.

πŸ“Œ Task
Status

Needs work

Version

9.5

Component
BaseΒ  β†’

Last updated 1 minute ago

Created by

πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024