/**
  * @param \OutputPage $out
  */
 public function setPageTitle(\OutputPage $out)
 {
     $topic = $this->findTopicTitle();
     $title = $this->workflow->getOwnerTitle();
     $out->setPageTitle($out->msg('flow-topic-first-heading', $title->getPrefixedText()));
     if ($this->permissions->isAllowed($topic, 'view')) {
         if ($this->action === 'undo-edit-topic-summary') {
             $key = 'flow-undo-edit-topic-summary';
         } else {
             $key = 'flow-topic-html-title';
         }
         $out->setHtmlTitle($out->msg($key, array(Message::rawParam($topic->getContent('wikitext')), $title->getPrefixedText())));
     } else {
         $out->setHtmlTitle($title->getPrefixedText());
     }
     $out->setSubtitle('< ' . \Linker::link($title));
 }