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

Breadcrumb

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

function Route::setDefault

Return value

$this

1 call to Route::setDefault()
Route::extractInlineDefaultsAndRequirements in vendor/symfony/routing/Route.php

File

vendor/symfony/routing/Route.php, line 309

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function setDefault(string $name, mixed $default) : static {
    if ('_locale' === $name && $this->isLocalized()) {
        return $this;
    }
    $this->defaults[$name] = $default;
    $this->compiled = null;
    return $this;
}

API Navigation

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