Definition at line 7 of file ExtractorInterface.php.
◆ fromFile()
static Gettext\Extractors\ExtractorInterface::fromFile |
( |
|
$file, |
|
|
Translations |
$translations = null |
|
) |
| |
|
static |
◆ fromString()
static Gettext\Extractors\ExtractorInterface::fromString |
( |
|
$string, |
|
|
Translations |
$translations = null , |
|
|
|
$file = '' |
|
) |
| |
|
static |
Parses a string and append the translations found in the Translations instance.
- Parameters
-
string | $string | |
Translations | null | $translations | |
string | $file | The file path to insert the reference |
- Returns
- Translations
Implemented in Gettext\Extractors\PhpCode, Gettext\Extractors\PhpArray, Gettext\Extractors\Twig, Gettext\Extractors\JsCode, Gettext\Extractors\Mo, Gettext\Extractors\Blade, Gettext\Extractors\Po, Gettext\Extractors\YamlDictionary, Gettext\Extractors\CsvDictionary, Gettext\Extractors\Jed, and Gettext\Extractors\JsonDictionary.
The documentation for this interface was generated from the following file: