public function StringTransformTrait::deleteLegacyWildcards in Drupal 7 to 8/9 Module Upgrader 8
Deletes %wildcards from a route path.
Parameters
string $path:
Return value
string
1 call to StringTransformTrait::deleteLegacyWildcards()
- StringTransformTrait::getIdentifierFromLegacyPath in src/
Utility/ StringTransformTrait.php - Generates an identifier from a Drupal 7 path.
File
- src/
Utility/ StringTransformTrait.php, line 86
Class
- StringTransformTrait
- Contains methods for transforming strings in various helpful ways.
Namespace
Drupal\drupalmoduleupgrader\UtilityCode
public function deleteLegacyWildcards($path) {
return preg_replace('/\\/?%[a-zA-Z0-9_]+/', NULL, $path);
}