Further modules included.
[yaffs-website] / web / modules / contrib / drupalmoduleupgrader / src / Utility / Path / Drupal8 / PathComponent.php
1 <?php
2
3 /**
4  * @file
5  * Contains \Drupal\drupalmoduleupgrader\Utility\Path\Drupal8\PathComponent.
6  */
7
8 namespace Drupal\drupalmoduleupgrader\Utility\Path\Drupal8;
9
10 use Drupal\drupalmoduleupgrader\Utility\Path\PathComponentBase;
11
12 /**
13  * Represents a single component in a Drupal 8 route path.
14  */
15 class PathComponent extends PathComponentBase {
16
17   /**
18    * {@inheritdoc}
19    */
20   public function isWildcard() {
21     return (boolean) preg_match('/\{[a-zA-Z0-9_]+\}/', $this->value);
22   }
23
24 }