You are here

public function DeleteAssets::__construct in Acquia Content Hub 8.2

DeleteAssets constructor.

Parameters

\Drupal\acquia_contenthub_subscriber\SubscriberTracker $tracker: The subscription tracker.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The Config Factory.

File

modules/acquia_contenthub_subscriber/src/EventSubscriber/HandleWebhook/DeleteAssets.php, line 40

Class

DeleteAssets
Deletes assets based on a webhook.

Namespace

Drupal\acquia_contenthub_subscriber\EventSubscriber\HandleWebhook

Code

public function __construct(SubscriberTracker $tracker, ConfigFactoryInterface $config_factory) {
  $this->tracker = $tracker;
  $this->config = $config_factory
    ->getEditable('acquia_contenthub.admin_settings');
}