You are here

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

File

src/Routing/ParameterBinding.php, line 40

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 __construct(PathUtilityInterface $path, ParameterNode $parameter, $argument = self::NO_ARGUMENT) {

  // Clone $path so that we have our own copy to look at. The original $path
  // is (probably) modified by upstream code.
  $this->path = clone $path;
  $this->parameter = $parameter;
  $this->argument = $argument;
}