You are here

public function ParameterBinding::inPath in Drupal 7 to 8/9 Module Upgrader 8

Returns if the parameter is explicitly represented in the path.

Return value

bool

File

src/Routing/ParameterBinding.php, line 62

Class

ParameterBinding
Represents a binding between a single callback parameter and a single path component in a Drupal 8 route path, possibly affected by an argument.

Namespace

Drupal\drupalmoduleupgrader\Routing

Code

public function inPath() {
  return $this
    ->isPathPosition() && sizeof($this->path) > $this
    ->getArgument();
}