public function UrlGenerator::setBasePath

Implements \Drupal\Core\Routing\PathBasedGeneratorInterface::setBasePath().

Overrides PathBasedGeneratorInterface::setBasePath

File

drupal/core/lib/Drupal/Core/Routing/UrlGenerator.php, line 318
Contains Drupal\Core\Routing\UrlGenerator.

Class

UrlGenerator
A Generator creates URL strings based on a specified route.

Namespace

Drupal\Core\Routing

Code

public function setBasePath($path) {
  $this->basePath = $path;
}