You are here

protected function VarnishPurgerBase::getUri in Varnish purger 8.2

Same name and namespace in other branches
  1. 8 src/Plugin/Purge/Purger/VarnishPurgerBase.php \Drupal\varnish_purger\Plugin\Purge\Purger\VarnishPurgerBase::getUri()

Retrieve the URI to connect to.

Parameters

array $token_data: An array of keyed objects, to pass on to the token service.

Return value

string URL string representation.

2 calls to VarnishPurgerBase::getUri()
VarnishBundledPurger::invalidate in src/Plugin/Purge/Purger/VarnishBundledPurger.php
Invalidate content from external caches.
VarnishPurger::invalidate in src/Plugin/Purge/Purger/VarnishPurger.php
Invalidate content from external caches.

File

src/Plugin/Purge/Purger/VarnishPurgerBase.php, line 180

Class

VarnishPurgerBase
Abstract base class for HTTP based configurable purgers.

Namespace

Drupal\varnish_purger\Plugin\Purge\Purger

Code

protected function getUri($token_data) {
  return sprintf('%s://%s:%s%s', $this->settings->scheme, $this->settings->hostname, $this->settings->port, $this->token
    ->replace($this->settings->path, $token_data));
}