You are here

public function ParameterMap::merge in Drupal 7 to 8/9 Module Upgrader 8

Merge another parameter map into this one. Bindings from the incoming map should 'win', although the specifics are up to the implementing classes.

Parameters

ParameterMap $map: The parameter map to merge.

File

src/Routing/ParameterMap.php, line 75

Class

ParameterMap
Represents a set of parameter bindings for a particular path, callback, and set of arguments.

Namespace

Drupal\drupalmoduleupgrader\Routing

Code

public function merge(ParameterMap $map) {
  foreach ($map as $binding) {
    $this
      ->addBinding($binding);
  }
}