public function PathComponent::isWildcard in Drupal 7 to 8/9 Module Upgrader 8
Same name in this branch
- 8 src/Utility/Path/Drupal7/PathComponent.php \Drupal\drupalmoduleupgrader\Utility\Path\Drupal7\PathComponent::isWildcard()
- 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/ Drupal8/ PathComponent.php, line 15
Class
- PathComponent
- Represents a single component in a Drupal 8 route path.
Namespace
Drupal\drupalmoduleupgrader\Utility\Path\Drupal8Code
public function isWildcard() {
return (bool) preg_match('/\\{[a-zA-Z0-9_]+\\}/', $this->value);
}