public function ConfigurableRequirementsInterface::setStrictRequirements

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

Parameters

Boolean|null $enabled:

1 method overrides ConfigurableRequirementsInterface::setStrictRequirements()
UrlGenerator::setStrictRequirements in drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Generator/UrlGenerator.php
Enables or disables the exception on incorrect parameters. Passing null will deactivate the requirements check completely.

File

drupal/core/vendor/symfony/routing/Symfony/Component/Routing/Generator/ConfigurableRequirementsInterface.php, line 46

Class

ConfigurableRequirementsInterface
ConfigurableRequirementsInterface must be implemented by URL generators that can be configured whether an exception should be generated when the parameters do not match the requirements. It is also possible to disable the requirements check for URL…

Namespace

Symfony\Component\Routing\Generator

Code

public function setStrictRequirements($enabled);