You are here

public function PathUtilityBase::getWildcards in Drupal 7 to 8/9 Module Upgrader 8

Returns every {wildcard} in the path, keyed by position.

Return value

static

File

src/Utility/Path/PathUtilityBase.php, line 86

Class

PathUtilityBase
Base class for PathUtilityInterface implementations.

Namespace

Drupal\drupalmoduleupgrader\Utility\Path

Code

public function getWildcards() {
  return $this
    ->filter(function (PathComponentInterface $component) {
    return $component
      ->isWildcard();
  });
}