Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MissingMandatoryParametersException.php

function MissingMandatoryParametersException::__construct

Parameters

string[] $missingParameters:

File

vendor/symfony/routing/Exception/MissingMandatoryParametersException.php, line 28

Class

MissingMandatoryParametersException
Exception thrown when a route cannot be generated because of missing mandatory parameters.

Namespace

Symfony\Component\Routing\Exception

Code

public function __construct(string $routeName = '', array $missingParameters = [], int $code = 0, ?\Throwable $previous = null) {
    $this->routeName = $routeName;
    $this->missingParameters = $missingParameters;
    $message = \sprintf('Some mandatory parameters are missing ("%s") to generate a URL for route "%s".', implode('", "', $missingParameters), $routeName);
    parent::__construct($message, $code, $previous);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal