ExternalHreflangGetCurrentUrlEvent.php in External Hreflang 8
File
src/Event/ExternalHreflangGetCurrentUrlEvent.php
View source
<?php
namespace Drupal\external_hreflang\Event;
use Drupal\Core\Url;
use Symfony\Component\EventDispatcher\Event;
class ExternalHreflangGetCurrentUrlEvent extends Event {
const EVENT_NAME = 'external_hreflang_get_current_url';
private $url;
public function getCurrentUrl() {
return $this->url;
}
public function setCurrentUrl(Url $url) {
$url
->setAbsolute(FALSE);
$this->url = $url;
}
}