MediaWiki master
ImportLogFormatter.php
Go to the documentation of this file.
1<?php
25namespace MediaWiki\Logging;
26
33 protected function getMessageKey() {
34 $key = parent::getMessageKey();
35 $params = $this->extractParameters();
36 if ( isset( $params[3] ) ) {
37 // New log items with more details
38 // Messages: logentry-import-upload-details, logentry-import-interwiki-details
39 $key .= '-details';
40 }
41
42 return $key;
43 }
44}
45
47class_alias( ImportLogFormatter::class, 'ImportLogFormatter' );
This class formats import log entries.
getMessageKey()
Returns a key to be used for formatting the action sentence.
Implements the default log formatting.
extractParameters()
Extracts the optional extra parameters for use in action messages.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Ge...