You are here

PathComponent.php in Drupal 7 to 8/9 Module Upgrader 8

File

src/Utility/Path/Drupal8/PathComponent.php
View source
<?php

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 (bool) preg_match('/\\{[a-zA-Z0-9_]+\\}/', $this->value);
  }

}

Classes

Namesort descending Description
PathComponent Represents a single component in a Drupal 8 route path.