summaryrefslogtreecommitdiff
blob: 39a39dc4030752d1ccbc4ce4db156fcdc6952b55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?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;
}