Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / src / Utility / Path / Drupal8 / PathComponent.php
diff --git a/web/modules/contrib/drupalmoduleupgrader/src/Utility/Path/Drupal8/PathComponent.php b/web/modules/contrib/drupalmoduleupgrader/src/Utility/Path/Drupal8/PathComponent.php
new file mode 100644 (file)
index 0000000..07d1661
--- /dev/null
@@ -0,0 +1,24 @@
+<?php
+
+/**
+ * @file
+ * Contains \Drupal\drupalmoduleupgrader\Utility\Path\Drupal8\PathComponent.
+ */
+
+namespace Drupal\drupalmoduleupgrader\Utility\Path\Drupal8;
+
+use Drupal\drupalmoduleupgrader\Utility\Path\PathComponentBase;
+
+/**
+ * Represents a single component in a Drupal 8 route path.
+ */
+class PathComponent extends PathComponentBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function isWildcard() {
+    return (boolean) preg_match('/\{[a-zA-Z0-9_]+\}/', $this->value);
+  }
+
+}