You are here

public function PathUtility::deletePlaceholders in Drupal 7 to 8/9 Module Upgrader 8

Returns a copy of the collection with all placeholders removed.

Return value

static

File

src/Utility/Path/Drupal7/PathUtility.php, line 53

Class

PathUtility
Represents a Drupal 7 route path.

Namespace

Drupal\drupalmoduleupgrader\Utility\Path\Drupal7

Code

public function deletePlaceholders() {
  return $this
    ->filter(function (PathComponent $component) {
    return !$component
      ->isPlaceholder();
  });
}