function WorkspaceMerger::getSourceLabel

Returns the human-readable label of the source.

Return value

string The source label.

Overrides WorkspaceOperationInterface::getSourceLabel

File

core/modules/workspaces/src/WorkspaceMerger.php, line 139

Class

WorkspaceMerger
Default implementation of the workspace merger.

Namespace

Drupal\workspaces

Code

public function getSourceLabel() {
  return $this->sourceWorkspace
    ->label();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.