You are here

private function EntityManager::entityFailures in Acquia Content Hub 8

Tracks the number of entities that fail to bulk upload.

Parameters

string $num: Number of failed entities added to the pool.

Return value

string The total number of entities that failed to bulk upload.

1 call to EntityManager::entityFailures()
EntityManager::isEligibleEntity in src/EntityManager.php
Checks whether the current entity should be transferred to Content Hub.

File

src/EntityManager.php, line 272

Class

EntityManager
Provides a service for managing entity actions for Content Hub.

Namespace

Drupal\acquia_contenthub

Code

private function entityFailures($num = NULL) {
  $total =& drupal_static(__METHOD__);
  if (!isset($total)) {
    $total = is_int($num) ? $num : 0;
  }
  else {
    $total = is_int($num) ? $total + $num : $total;
  }
  return $total;
}