Commit 2a2f6288 authored by Benni Mack's avatar Benni Mack Committed by Christian Kuhn
Browse files

[TASK] Rename method inside PageLayoutController

Give the actual method the name "generateMessagesForCurrentPage"
as no flash messages are generated.

Resolves: #93428
Releases: master
Change-Id: I1c0c9e721a012fab2942133637fcd8513571d03c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71487

Reviewed-by: Sybille Peters's avatarSybille Peters <sypets@gmx.de>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 9f228e99
......@@ -361,11 +361,11 @@ class PageLayoutController
}
/**
* Generate the flashmessages for current pid
* Generate various messages (rendered as callouts) for the current page record (such as if the page has a special doktype).
*
* @return string HTML content with flashmessages
* @return string HTML content with messages
*/
protected function getHeaderFlashMessagesForCurrentPid(): string
protected function generateMessagesForCurrentPage(): string
{
$content = '';
$lang = $this->getLanguageService();
......@@ -594,7 +594,7 @@ class PageLayoutController
$this->colPosList = implode(',', $colPosArray);
}
$content .= $this->getHeaderFlashMessagesForCurrentPid();
$content .= $this->generateMessagesForCurrentPage();
// Render the primary module content:
$content .= '<form action="' . htmlspecialchars((string)$this->uriBuilder->buildUriFromRoute($this->moduleName, ['id' => $this->id])) . '" id="PageLayoutController" method="post">';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment