You are here

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

Whether or not the argument is a path position (integer greater than or equal to 0).

Return value

bool

2 calls to ParameterBinding::isPathPosition()
ParameterBinding::getValue in src/Routing/ParameterBinding.php
Returns the value of the binding. If the value is an instance of \Drupal\drupalmoduleupgrader\Utility\Path\PathComponentInterface, the binding expects to be physically represented in the path, although it may not yet be (this can be ascertained by the…
ParameterBinding::inPath in src/Routing/ParameterBinding.php
Returns if the parameter is explicitly represented in the path.

File

src/Routing/ParameterBinding.php, line 90

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 isPathPosition() {
  return $this
    ->hasArgument() && is_integer($this
    ->getArgument());
}