-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vitalij Mik
committed
Apr 30, 2024
1 parent
91cf1e4
commit 73bbe21
Showing
7 changed files
with
81 additions
and
5 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
polyfill/Shopware/Core/System/Snippet/Files/SnippetFileInterface.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,50 @@ | ||
<?php declare(strict_types=1); | ||
|
||
namespace Shopware\Core\System\Snippet\Files; | ||
|
||
|
||
if (interface_exists(__NAMESPACE__.'/SnippetFileInterface')) { | ||
return; | ||
} | ||
|
||
interface SnippetFileInterface | ||
{ | ||
/** | ||
* Returns the displayed name. | ||
* | ||
* Example: | ||
* storefront.en-GB | ||
*/ | ||
public function getName(): string; | ||
|
||
/** | ||
* Returns the path to the json language file. | ||
* | ||
* Example: | ||
* /appPath/subDirectory/storefront.en-GB.json | ||
*/ | ||
public function getPath(): string; | ||
|
||
/** | ||
* Returns the associated language ISO. | ||
* | ||
* Example: | ||
* en-GB | ||
* de-DE | ||
*/ | ||
public function getIso(): string; | ||
|
||
/** | ||
* Return the snippet author, which will be used when editing a file snippet in a snippet set | ||
* | ||
* Example: | ||
* shopware | ||
* pluginName | ||
*/ | ||
public function getAuthor(): string; | ||
|
||
/** | ||
* Returns a boolean which determines if its a base language file | ||
*/ | ||
public function isBase(): bool; | ||
} |
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