public function UrlGenerator::setStrictRequirements

Enables or disables the exception on incorrect parameters.

Parameters

Boolean $enabled:

Overrides ConfigurableRequirementsInterface::setStrictRequirements

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Generator/UrlGenerator.php, line 100

Class

UrlGenerator
UrlGenerator generates a URL based on a set of routes.

Namespace

Symfony\Component\Routing\Generator

Code

public function setStrictRequirements($enabled) {
  $this->strictRequirements = (bool) $enabled;
}