public function UrlGenerator::setStrictRequirements

Enables or disables the exception on incorrect parameters. Passing null will deactivate the requirements check completely.

Parameters

Boolean|null $enabled:

Overrides ConfigurableRequirementsInterface::setStrictRequirements

File

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

Class

UrlGenerator
UrlGenerator can generate a URL or a path for any route in the RouteCollection based on the passed parameters.

Namespace

Symfony\Component\Routing\Generator

Code

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