You are here

public function AcsfDuplicationScrubCommentHandler::countRemaining in Acquia Cloud Site Factory Connector 8

Same name and namespace in other branches
  1. 8.2 src/Event/AcsfDuplicationScrubCommentHandler.php \Drupal\acsf\Event\AcsfDuplicationScrubCommentHandler::countRemaining()

Counts the entities that still need to be processed.

Return value

int The number of entities that still need to be processed. (That is: not counting the entities that could not be deleted.)

Overrides AcsfDuplicationScrubEntityHandler::countRemaining

File

src/Event/AcsfDuplicationScrubCommentHandler.php, line 87

Class

AcsfDuplicationScrubCommentHandler
Handles the scrubbing of Drupal comments.

Namespace

Drupal\acsf\Event

Code

public function countRemaining() {
  if (!\Drupal::moduleHandler()
    ->moduleExists('comment')) {
    return 0;
  }
  return parent::countRemaining();
}