MediaWiki REL1_40
|
Expansions of core magic variables, used by the parser. More...
Static Public Member Functions | |
static | expand (Parser $parser, string $id, ConvertibleTimestamp $ts, ServiceOptions $svcOptions, LoggerInterface $logger) |
Expand the magic variable given by $index. | |
Expansions of core magic variables, used by the parser.
Definition at line 33 of file CoreMagicVariables.php.
|
static |
Expand the magic variable given by $index.
Parser | $parser | |
string | $id | The name of the variable, and equivalently, the magic word ID which was used to match the variable |
ConvertibleTimestamp | $ts | Timestamp to use when expanding magic variable |
ServiceOptions | $svcOptions | Service options for the parser |
LoggerInterface | $logger |
Definition at line 47 of file CoreMagicVariables.php.
References MediaWiki\Config\ServiceOptions\get(), Parser\getContentLanguage(), Parser\getRevisionSize(), and SpecialVersion\getVersion().