-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Ensure setup creates site configuration
- Loading branch information
1 parent
c56e1c4
commit c7a5809
Showing
2 changed files
with
31 additions
and
0 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,25 @@ | ||
<?php | ||
declare(strict_types = 1); | ||
|
||
/* | ||
* This file is part of the package t3g/blog. | ||
* | ||
* For the full copyright and license information, please read the | ||
* LICENSE file that was distributed with this source code. | ||
*/ | ||
|
||
namespace T3G\AgencyPack\Blog\Hooks; | ||
|
||
use T3G\AgencyPack\Blog\Constants; | ||
use TYPO3\CMS\Core\Domain\Repository\PageRepository; | ||
use TYPO3\CMS\Core\Hooks\CreateSiteConfiguration as CoreCreateSiteConfiguration; | ||
|
||
class CreateSiteConfigurationHook extends CoreCreateSiteConfiguration | ||
{ | ||
protected $allowedPageTypes = [ | ||
PageRepository::DOKTYPE_DEFAULT, | ||
PageRepository::DOKTYPE_LINK, | ||
PageRepository::DOKTYPE_SHORTCUT, | ||
Constants::DOKTYPE_BLOG_PAGE | ||
]; | ||
} |
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