Skip to content

Commit

Permalink
[TASK] rerun fix:php after merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmschuler committed May 6, 2022
1 parent 029833a commit 95b85a7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
5 changes: 2 additions & 3 deletions Classes/Controller/Backend/PageLayoutController.php
Expand Up @@ -31,7 +31,7 @@
use TYPO3\CMS\Extbase\Mvc\View\ViewInterface;
use Tvp\TemplaVoilaPlus\Configuration\BackendConfiguration;
use Tvp\TemplaVoilaPlus\Core\Messaging\FlashMessage;
USE Tvp\TemplaVoilaPlus\Domain\Repository\PageRepository;
use Tvp\TemplaVoilaPlus\Domain\Repository\PageRepository;
use Tvp\TemplaVoilaPlus\Utility\TemplaVoilaUtility;

class PageLayoutController extends ActionController
Expand Down Expand Up @@ -280,15 +280,14 @@ protected function checkContentFromPid()
$pages = $pageRepository->getPagesUsingContentFrom($this->pageInfo['uid']);

if (count($pages)) {

$titles = [];
$buttons = [];
foreach ($pages as $contentPage) {
$title = BackendUtility::getRecordTitle('pages', $contentPage)
. ' [' . $contentPage['uid'] . ']';
$titles[] = $title;
$buttons[] = [
'url' => $linkToPage = GeneralUtility::linkThisScript(['id' =>$contentPage['uid']]),
'url' => $linkToPage = GeneralUtility::linkThisScript(['id' => $contentPage['uid']]),
'label' => $title,
'icon' => 'apps-pagetree-page-shortcut',
];
Expand Down
10 changes: 5 additions & 5 deletions Classes/Core/Messaging/FlashMessage.php
Expand Up @@ -28,11 +28,11 @@ class FlashMessage extends CoreFlashMessage
{
/**
* @var array Array of buttons to show in a button group under the flash message with subarray of
* [
* 'url' => (string)
* 'label' => (string)
* 'icon' => (string)
* ]
* [
* 'url' => (string)
* 'label' => (string)
* 'icon' => (string)
* ]
*/
protected $buttons = [];

Expand Down

0 comments on commit 95b85a7

Please sign in to comment.