You are here

public function WorkspaceOperationInterface::getNumberOfChangesOnTarget in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workspaces/src/WorkspaceOperationInterface.php \Drupal\workspaces\WorkspaceOperationInterface::getNumberOfChangesOnTarget()

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

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

Return value

int The number of differing revisions.

2 methods override WorkspaceOperationInterface::getNumberOfChangesOnTarget()
WorkspaceMerger::getNumberOfChangesOnTarget in core/modules/workspaces/src/WorkspaceMerger.php
Gets the total number of items which have changed on the target.
WorkspacePublisher::getNumberOfChangesOnTarget in core/modules/workspaces/src/WorkspacePublisher.php
Gets the total number of items which have changed on the target.

File

core/modules/workspaces/src/WorkspaceOperationInterface.php, line 68

Class

WorkspaceOperationInterface
Defines an interface for workspace operations.

Namespace

Drupal\workspaces

Code

public function getNumberOfChangesOnTarget();