-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Support for TypolinkParameter objects in TYPO3 v13
- Loading branch information
Showing
3 changed files
with
52 additions
and
1 deletion.
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
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,18 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace SMS\FluidComponents\Interfaces; | ||
|
||
use TYPO3\CMS\Core\LinkHandling\TypolinkParameter; | ||
|
||
/** | ||
* ConstructibleFromTypolinkParameter defines an alternative constructor | ||
* which "converts" the provided ConstructibleFromTypolinkParameter instance | ||
* to the class implementing the interface. | ||
*/ | ||
interface ConstructibleFromTypolinkParameter | ||
{ | ||
/** | ||
* Creates an instance of the class based on the provided object. | ||
*/ | ||
public static function fromTypolinkParameter(TypolinkParameter $value): object; | ||
} |
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