function WorkspacePublishEvent::getPublishingStoppedReason

Same name and namespace in other branches
  1. 10 core/modules/workspaces/src/Event/WorkspacePublishEvent.php \Drupal\workspaces\Event\WorkspacePublishEvent::getPublishingStoppedReason()

Gets the reason for stopping the workspace publication.

Return value

string|\Drupal\Core\StringTranslation\TranslatableMarkup The reason for stopping the workspace publication or an empty string if no reason is provided.

File

core/modules/workspaces/src/Event/WorkspacePublishEvent.php, line 94

Class

WorkspacePublishEvent
Defines the workspace publish event.

Namespace

Drupal\workspaces\Event

Code

public function getPublishingStoppedReason() : string|TranslatableMarkup {
    return $this->publishingStoppedReason;
}

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