function WorkspaceMerger::getNumberOfChangesOnSource
Same name in other branches
- 9 core/modules/workspaces/src/WorkspaceMerger.php \Drupal\workspaces\WorkspaceMerger::getNumberOfChangesOnSource()
- 8.9.x core/modules/workspaces/src/WorkspaceMerger.php \Drupal\workspaces\WorkspaceMerger::getNumberOfChangesOnSource()
- 11.x core/modules/workspaces/src/WorkspaceMerger.php \Drupal\workspaces\WorkspaceMerger::getNumberOfChangesOnSource()
Overrides WorkspaceOperationInterface::getNumberOfChangesOnSource
File
-
core/
modules/ workspaces/ src/ WorkspaceMerger.php, line 218
Class
- WorkspaceMerger
- Default implementation of the workspace merger.
Namespace
Drupal\workspacesCode
public function getNumberOfChangesOnSource() {
$total_changes = $this->getDifferringRevisionIdsOnSource();
return count($total_changes, COUNT_RECURSIVE) - count($total_changes);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.