Url.php in Persistent URL 8
Namespace
Drupal\purlFile
src/Url.phpView source
<?php
/**
* Created by PhpStorm.
* User: bez
* Date: 2016-02-04
* Time: 3:53 PM
*/
namespace Drupal\purl;
use Drupal\Core\Url as UrlBase;
class Url extends UrlBase {
protected function urlGenerator() {
if (!$this->urlGenerator) {
$this->urlGenerator = \Drupal::getContainer()
->get('purl.url_generator');
}
return $this->urlGenerator;
}
}