protected function UrlGenerator::initialized

Returns whether or not the url generator has been initialized.

Return value

bool Returns TRUE if the basePath, baseUrl and scriptPath properties have been set, FALSE otherwise.

1 call to UrlGenerator::initialized()

File

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

Class

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

Namespace

Drupal\Core\Routing

Code

protected function initialized() {
  return isset($this->basePath) && isset($this->baseUrl) && isset($this->scriptPath);
}