You are here

public function ContentLockPreEntityDelete::__construct in Acquia Content Hub 8

ContentLockPreEntityDelete constructor.

Parameters

\Drupal\Core\Extension\ModuleHandlerInterface $handler: The module handler.

File

acquia_contenthub_audit/src/EventSubscriber/ContentLockPreEntityDelete.php, line 31

Class

ContentLockPreEntityDelete
Content lock that occurs pre-entity delete.

Namespace

Drupal\acquia_contenthub_audit\EventSubscriber

Code

public function __construct(ModuleHandlerInterface $handler) {
  if ($handler
    ->moduleExists('content_lock')) {
    $this->contentLock = \Drupal::service('content_lock');
  }
}