function WorkspaceMerger::getTargetLabel

Same name in other branches
  1. 9 core/modules/workspaces/src/WorkspaceMerger.php \Drupal\workspaces\WorkspaceMerger::getTargetLabel()
  2. 8.9.x core/modules/workspaces/src/WorkspaceMerger.php \Drupal\workspaces\WorkspaceMerger::getTargetLabel()
  3. 10 core/modules/workspaces/src/WorkspaceMerger.php \Drupal\workspaces\WorkspaceMerger::getTargetLabel()

Overrides WorkspaceOperationInterface::getTargetLabel

File

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

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.