-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce 2 new PSR-14 Events BeforeContainerConfigurationIsAppliedEvent * change container configuration for 3rd party extensions container you have installed * apply same configuration to all or a set of containers (e.g. gridTemplate) * Note: CType and Grid Structure cannot be changed (but Column Properties of the Grid) BeforeContainerPreviewIsRendered change view object, e.g. add variables to view or change paths
- Loading branch information
1 parent
ef6cc8d
commit 43c6fba
Showing
16 changed files
with
212 additions
and
27 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
41 changes: 41 additions & 0 deletions
41
Classes/Events/BeforeContainerConfigurationIsAppliedEvent.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,41 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace B13\Container\Events; | ||
|
||
/* | ||
* This file is part of TYPO3 CMS-based extension "container" by b13. | ||
* | ||
* It is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License, either version 2 | ||
* of the License, or any later version. | ||
*/ | ||
|
||
use B13\Container\Tca\ContainerConfiguration; | ||
|
||
final class BeforeContainerConfigurationIsAppliedEvent | ||
{ | ||
protected ContainerConfiguration $containerConfiguration; | ||
protected bool $skip = false; | ||
|
||
public function __construct(ContainerConfiguration $containerConfiguration) | ||
{ | ||
$this->containerConfiguration = $containerConfiguration; | ||
} | ||
|
||
public function skip(): void | ||
{ | ||
$this->skip = true; | ||
} | ||
|
||
public function shouldBeSkipped(): bool | ||
{ | ||
return $this->skip; | ||
} | ||
|
||
public function getContainerConfiguration(): ContainerConfiguration | ||
{ | ||
return $this->containerConfiguration; | ||
} | ||
} |
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,39 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace B13\Container\Events; | ||
|
||
/* | ||
* This file is part of TYPO3 CMS-based extension "container" by b13. | ||
* | ||
* It is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License, either version 2 | ||
* of the License, or any later version. | ||
*/ | ||
|
||
use B13\Container\Domain\Model\Container; | ||
use TYPO3\CMS\Fluid\View\StandaloneView; | ||
|
||
final class BeforeContainerPreviewIsRenderedEvent | ||
{ | ||
protected Container $container; | ||
|
||
protected StandaloneView $view; | ||
|
||
public function __construct(Container $container, StandaloneView $view) | ||
{ | ||
$this->container = $container; | ||
$this->view = $view; | ||
} | ||
|
||
public function getContainer(): Container | ||
{ | ||
return $this->container; | ||
} | ||
|
||
public function getView(): StandaloneView | ||
{ | ||
return $this->view; | ||
} | ||
} |
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
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
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.