final public function HttpPurgerBase::__construct in Generic HTTP Purger 8
Constructs the HTTP purger.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\GuzzleHttp\ClientInterface $http_client: An HTTP client that can perform remote requests.
\Drupal\Core\Utility\Token $token: The token service.
Overrides PurgerBase::__construct
File
- src/
Plugin/ Purge/ Purger/ HttpPurgerBase.php, line 52
Class
- HttpPurgerBase
- Abstract base class for HTTP based configurable purgers.
Namespace
Drupal\purge_purger_http\Plugin\Purge\PurgerCode
public final function __construct(array $configuration, $plugin_id, $plugin_definition, ClientInterface $http_client, Token $token) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->settings = HttpPurgerSettings::load($this
->getId());
$this->client = $http_client;
$this->token = $token;
}