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

Breadcrumb

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

function Route::getOption

Returns the option value or null when not found.

1 call to Route::getOption()
Route::compile in vendor/symfony/routing/Route.php
Compiles the route.

File

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

Class

Route
A Route describes a route and its parameters.

Namespace

Symfony\Component\Routing

Code

public function getOption(string $name) : mixed {
    return $this->options[$name] ?? null;
}

API Navigation

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