You are here

constant ParameterBinding::NO_ARGUMENT in Drupal 7 to 8/9 Module Upgrader 8

The trouble with Drupal 7 callback arguments is that virtually any value could be explicitly passed, including NULL and FALSE. -1 is an illegal value because it's an integer, but not a valid path position. So we'll use it here as a signal that no argument is explicitly bound to the parameter.

File

src/Routing/ParameterBinding.php, line 38

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

const NO_ARGUMENT = -1;