You are here

public function RouteMock::getDefaults in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony-cmf/routing/Tests/Routing/RouteMock.php \Symfony\Cmf\Component\Routing\Tests\Routing\RouteMock::getDefaults()

Returns the defaults.

Return value

array The defaults

Overrides Route::getDefaults

File

vendor/symfony-cmf/routing/Tests/Routing/RouteMock.php, line 32

Class

RouteMock

Namespace

Symfony\Cmf\Component\Routing\Tests\Routing

Code

public function getDefaults() {
  $defaults = array();
  if (!is_null($this->locale)) {
    $defaults['_locale'] = $this->locale;
  }
  return $defaults;
}