Loading src/DiffEntityComparison.php +4 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,10 @@ class DiffEntityComparison { $revision_summary = ''; // Check if the revision has a revision log message. if ($revision instanceof RevisionLogInterface) { $revision_summary = Xss::filter($revision->getRevisionLogMessage()); $revision_log_message = $revision->getRevisionLogMessage(); if ($revision_log_message !== NULL) { $revision_summary = Xss::filter($revision_log_message); } } // @todo Autogenerate summary again. Loading src/DiffLayoutBase.php +2 −2 Original line number Diff line number Diff line Loading @@ -166,7 +166,7 @@ abstract class DiffLayoutBase extends PluginBase implements DiffLayoutInterface, */ protected function buildRevisionData(ContentEntityInterface $revision) { if ($revision instanceof RevisionLogInterface) { $revision_log = Xss::filter($revision->getRevisionLogMessage()); $revision_log = $revision->getRevisionLogMessage(); $user_id = $revision->getRevisionUserId(); $revision_link['date'] = [ Loading @@ -192,7 +192,7 @@ abstract class DiffLayoutBase extends PluginBase implements DiffLayoutInterface, '#type' => 'markup', '#prefix' => '<div class="diff-revision__item diff-revision__item-message">', '#suffix' => '</div>', '#markup' => $revision_log, '#markup' => Xss::filter($revision_log), ]; } } Loading Loading
src/DiffEntityComparison.php +4 −1 Original line number Diff line number Diff line Loading @@ -268,7 +268,10 @@ class DiffEntityComparison { $revision_summary = ''; // Check if the revision has a revision log message. if ($revision instanceof RevisionLogInterface) { $revision_summary = Xss::filter($revision->getRevisionLogMessage()); $revision_log_message = $revision->getRevisionLogMessage(); if ($revision_log_message !== NULL) { $revision_summary = Xss::filter($revision_log_message); } } // @todo Autogenerate summary again. Loading
src/DiffLayoutBase.php +2 −2 Original line number Diff line number Diff line Loading @@ -166,7 +166,7 @@ abstract class DiffLayoutBase extends PluginBase implements DiffLayoutInterface, */ protected function buildRevisionData(ContentEntityInterface $revision) { if ($revision instanceof RevisionLogInterface) { $revision_log = Xss::filter($revision->getRevisionLogMessage()); $revision_log = $revision->getRevisionLogMessage(); $user_id = $revision->getRevisionUserId(); $revision_link['date'] = [ Loading @@ -192,7 +192,7 @@ abstract class DiffLayoutBase extends PluginBase implements DiffLayoutInterface, '#type' => 'markup', '#prefix' => '<div class="diff-revision__item diff-revision__item-message">', '#suffix' => '</div>', '#markup' => $revision_log, '#markup' => Xss::filter($revision_log), ]; } } Loading