You are here

public function StringTransformTrait::getIdentifierFromLegacyPath in Drupal 7 to 8/9 Module Upgrader 8

Generates an identifier from a Drupal 7 path.

Parameters

string $path: The input path, including any %wildcards.

Return value

string The identifier

File

src/Utility/StringTransformTrait.php, line 99

Class

StringTransformTrait
Contains methods for transforming strings in various helpful ways.

Namespace

Drupal\drupalmoduleupgrader\Utility

Code

public function getIdentifierFromLegacyPath($path) {
  return $this
    ->getIdentifierFromPath($this
    ->deleteLegacyWildcards($path));
}