You are here

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

Returns if this binding has an explicit argument.

Return value

bool

2 calls to ParameterBinding::hasArgument()
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::isPathPosition in src/Routing/ParameterBinding.php
Whether or not the argument is a path position (integer greater than or equal to 0).

File

src/Routing/ParameterBinding.php, line 71

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 hasArgument() {
  return $this
    ->getArgument() !== self::NO_ARGUMENT;
}