You are here

public function CompiledRoute::getDefaults in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Routing/CompiledRoute.php \Drupal\Core\Routing\CompiledRoute::getDefaults()

Returns the defaults.

Return value

array The defaults.

Deprecated

in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided.

See also

https://www.drupal.org/node/3159706

File

core/lib/Drupal/Core/Routing/CompiledRoute.php, line 140

Class

CompiledRoute
A compiled route contains derived information from a route object.

Namespace

Drupal\Core\Routing

Code

public function getDefaults() {
  @trigger_error(__METHOD__ . '() is deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. No direct replacement is provided. See https://www.drupal.org/node/3159706', E_USER_DEPRECATED);
  return $this->route
    ->getDefaults();
}