5 * Contains \Drupal\drupalmoduleupgrader\Utility\Path\Drupal7\PathComponent.
8 namespace Drupal\drupalmoduleupgrader\Utility\Path\Drupal7;
10 use Drupal\drupalmoduleupgrader\Utility\Path\PathComponentBase;
13 * Represents a single component in a Drupal 7 route path.
15 class PathComponent extends PathComponentBase {
18 * Returns if this component is a generic placeholder (%).
22 public function isPlaceholder() {
23 return $this->value == '%';
29 public function isWildcard() {
30 return (boolean) preg_match('/%[a-zA-Z0-9_]+/', $this->value);