public function UrlGenerator::setStrictRequirements in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/routing/Generator/UrlGenerator.php \Symfony\Component\Routing\Generator\UrlGenerator::setStrictRequirements()
- 8 core/lib/Drupal/Core/Routing/UrlGenerator.php \Drupal\Core\Routing\UrlGenerator::setStrictRequirements()
Same name and namespace in other branches
- 8.0 vendor/symfony/routing/Generator/UrlGenerator.php \Symfony\Component\Routing\Generator\UrlGenerator::setStrictRequirements()
Enables or disables the exception on incorrect parameters. Passing null will deactivate the requirements check completely.
Parameters
bool|null $enabled:
Overrides ConfigurableRequirementsInterface::setStrictRequirements
File
- vendor/
symfony/ routing/ Generator/ UrlGenerator.php, line 111
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\GeneratorCode
public function setStrictRequirements($enabled) {
$this->strictRequirements = null === $enabled ? null : (bool) $enabled;
}