You are here

public function WorkspacePublisher::getSourceLabel in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/workspaces/src/WorkspacePublisher.php \Drupal\workspaces\WorkspacePublisher::getSourceLabel()

Returns the human-readable label of the source.

Return value

string The source label.

Overrides WorkspaceOperationInterface::getSourceLabel

File

core/modules/workspaces/src/WorkspacePublisher.php, line 131

Class

WorkspacePublisher
Default implementation of the workspace publisher.

Namespace

Drupal\workspaces

Code

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