-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/test' into test
- Loading branch information
Showing
19 changed files
with
337 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Slub\LisztCommon\Common; | ||
|
||
|
||
use TYPO3\CMS\Core\PageTitle\AbstractPageTitleProvider; | ||
|
||
|
||
final class PageTitleProvider extends AbstractPageTitleProvider | ||
{ | ||
public function setTitle(string $title): void | ||
{ | ||
$this->title = $title; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
Classes/Event/Listener/SiteConfigurationLoadedEventListener.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace Slub\LisztCommon\Event\Listener; | ||
|
||
use TYPO3\CMS\Core\Configuration\Event\SiteConfigurationLoadedEvent; | ||
use TYPO3\CMS\Core\Configuration\Loader\YamlFileLoader; | ||
use TYPO3\CMS\Core\Utility\ArrayUtility; | ||
use TYPO3\CMS\Core\Utility\GeneralUtility; | ||
|
||
/** | ||
* Event to modify the site configuration array before loading the configuration | ||
*/ | ||
final class SiteConfigurationLoadedEventListener | ||
{ | ||
|
||
public function modify(SiteConfigurationLoadedEvent $event): void | ||
{ | ||
$configuration = $event->getConfiguration(); | ||
$fileLoader = GeneralUtility::makeInstance(YamlFileLoader::class); | ||
$routeEnhancersConfiguration = $fileLoader->load('EXT:liszt_common/Configuration/Routing/routeEnhancers.yaml'); | ||
ArrayUtility::mergeRecursiveWithOverrule($configuration, $routeEnhancersConfiguration); | ||
$event->setConfiguration($configuration); | ||
} | ||
|
||
} |
23 changes: 23 additions & 0 deletions
23
Classes/ViewHelpers/GetDetailBreadCrumbArrayViewHelper.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
declare(strict_types=1); | ||
|
||
namespace Slub\LisztCommon\ViewHelpers; | ||
|
||
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; | ||
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper; | ||
|
||
class GetDetailBreadCrumbArrayViewHelper extends AbstractViewHelper | ||
{ | ||
|
||
public static function renderStatic( | ||
array $arguments, | ||
\Closure $renderChildrenClosure, | ||
RenderingContextInterface $renderingContext) | ||
: ?array | ||
{ | ||
|
||
$request = $renderingContext->getRequest();$frontendController = $request->getAttribute('frontend.controller'); | ||
$rootline = $frontendController->rootLine; | ||
return array_reverse($rootline); | ||
} | ||
} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.