You are here

public function WorkspaceMerger::getTargetLabel in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workspaces/src/WorkspaceMerger.php \Drupal\workspaces\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 132

Class

WorkspaceMerger
Default implementation of the workspace merger.

Namespace

Drupal\workspaces

Code

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