You are here

public function PathComponent::isWildcard in Drupal 7 to 8/9 Module Upgrader 8

Same name in this branch
  1. 8 src/Utility/Path/Drupal7/PathComponent.php \Drupal\drupalmoduleupgrader\Utility\Path\Drupal7\PathComponent::isWildcard()
  2. 8 src/Utility/Path/Drupal8/PathComponent.php \Drupal\drupalmoduleupgrader\Utility\Path\Drupal8\PathComponent::isWildcard()

Returns if this component is considered a wildcard.

Return value

bool

Overrides PathComponentInterface::isWildcard

File

src/Utility/Path/Drupal7/PathComponent.php, line 24

Class

PathComponent
Represents a single component in a Drupal 7 route path.

Namespace

Drupal\drupalmoduleupgrader\Utility\Path\Drupal7

Code

public function isWildcard() {
  return (bool) preg_match('/%[a-zA-Z0-9_]+/', $this->value);
}