You are here

public function LiveRepositoryHandler::getNumberOfChangesOnSource in Workspace 8.2

Gets the total number of items which have changed on the source.

This returns the aggregated changes count across all entity types. For example, if two nodes and one taxonomy term have changed on the source, the return value is 3.

Return value

int The number of differing revisions.

Overrides RepositoryHandlerInterface::getNumberOfChangesOnSource

File

src/Plugin/RepositoryHandler/LiveRepositoryHandler.php, line 212

Class

LiveRepositoryHandler
Defines a plugin which replicates content to the default (Live) workspace.

Namespace

Drupal\workspace\Plugin\RepositoryHandler

Code

public function getNumberOfChangesOnSource() {
  $total_changes = $this
    ->getDifferringRevisionIdsOnSource();
  return count($total_changes, COUNT_RECURSIVE) - count($total_changes);
}