diff options
Diffstat (limited to 'MLEB/Translate/src/TranslatorInterface/Insertable/InsertablesSuggester.php')
-rw-r--r-- | MLEB/Translate/src/TranslatorInterface/Insertable/InsertablesSuggester.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/MLEB/Translate/src/TranslatorInterface/Insertable/InsertablesSuggester.php b/MLEB/Translate/src/TranslatorInterface/Insertable/InsertablesSuggester.php new file mode 100644 index 00000000..a327fb6b --- /dev/null +++ b/MLEB/Translate/src/TranslatorInterface/Insertable/InsertablesSuggester.php @@ -0,0 +1,21 @@ +<?php +declare( strict_types = 1 ); + +namespace MediaWiki\Extension\Translate\TranslatorInterface\Insertable; + +/** + * Interface for InsertablesSuggesters. Insertable is a string that usually does + * not need translation and is difficult to type manually. + * @author Niklas Laxström + * @license GPL-2.0-or-later + * @since 2020.12 + */ +interface InsertablesSuggester { + /** + * Returns the insertables in the message text. + * @return Insertable[] + */ + public function getInsertables( string $text ): array; +} + +class_alias( InsertablesSuggester::class, '\MediaWiki\Extensions\Translate\InsertablesSuggester' ); |