You are here

protected function HttpPurgerBase::getUri in Generic HTTP Purger 8

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 HttpPurgerBase::getUri()
HttpBundledPurger::invalidate in src/Plugin/Purge/Purger/HttpBundledPurger.php
Invalidate content from external caches.
HttpPurger::invalidate in src/Plugin/Purge/Purger/HttpPurger.php
Invalidate content from external caches.

File

src/Plugin/Purge/Purger/HttpPurgerBase.php, line 188

Class

HttpPurgerBase
Abstract base class for HTTP based configurable purgers.

Namespace

Drupal\purge_purger_http\Plugin\Purge\Purger

Code

protected function getUri(array $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));
}