You are here

public function CacheControlForm::__construct in Akamai 8.3

Constructs a new CacheControlForm.

Parameters

\Drupal\akamai\AkamaiClientFactory $factory: The akamai client factory.

\Drupal\Core\Messenger\MessengerInterface $messenger: The Drupal messenger service.

File

src/Form/CacheControlForm.php, line 49

Class

CacheControlForm
A simple form for testing the Akamai integration, or doing manual clears.

Namespace

Drupal\akamai\Form

Code

public function __construct(AkamaiClientFactory $factory, MessengerInterface $messenger) {
  $this->akamaiClient = $factory
    ->get();
  $this->messenger = $messenger;
}