function WorkspaceMerger::getTargetLabel

Returns the human-readable label of the target.

Return value

string The target label.

Overrides WorkspaceOperationInterface::getTargetLabel

File

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

Class

WorkspaceMerger
Default implementation of the workspace merger.

Namespace

Drupal\workspaces

Code

public function getTargetLabel() {
  return $this->targetWorkspace
    ->label();
}

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