You are here

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

Returns if there are placeholders in the path.

Return value

bool

1 call to PathUtility::hasPlaceholders()
PathUtility::isDynamic in src/Utility/Path/Drupal7/PathUtility.php
Returns if the path has %wildcards or placeholders (%) in it.

File

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

Class

PathUtility
Represents a Drupal 7 route path.

Namespace

Drupal\drupalmoduleupgrader\Utility\Path\Drupal7

Code

public function hasPlaceholders() {
  return $this
    ->getPlaceholders()
    ->count() > 0;
}