You are here

public function AcsfDuplicationScrubNodeHandler::handle in Acquia Cloud Site Factory Connector 8.2

Same name and namespace in other branches
  1. 8 src/Event/AcsfDuplicationScrubNodeHandler.php \Drupal\acsf\Event\AcsfDuplicationScrubNodeHandler::handle()

Implements AcsfEventHandler::handle().

Overrides AcsfDuplicationScrubEntityHandler::handle

File

src/Event/AcsfDuplicationScrubNodeHandler.php, line 24

Class

AcsfDuplicationScrubNodeHandler
Handles the scrubbing of Drupal nodes.

Namespace

Drupal\acsf\Event

Code

public function handle() {
  $options = $this->event->context['scrub_options'];
  if ($options['retain_content']) {

    // We still want to log that we were here.
    $this
      ->consoleLog(dt('Entered @class', [
      '@class' => get_class($this),
    ]));
    return;
  }
  parent::handle();
}