MediaWiki master
ImportLogFormatter.php
Go to the documentation of this file.
1<?php
11namespace MediaWiki\Logging;
12
20 protected function getMessageKey() {
21 $key = parent::getMessageKey();
22 $params = $this->extractParameters();
23 if ( isset( $params[3] ) ) {
24 // New log items with more details
25 // Messages: logentry-import-upload-details, logentry-import-interwiki-details
26 $key .= '-details';
27 }
28
29 return $key;
30 }
31}
32
34class_alias( ImportLogFormatter::class, 'ImportLogFormatter' );
This class formats import log entries.
getMessageKey()
Returns a key to be used for formatting the action sentence.Default is logentry-TYPE-SUBTYPE for mode...
Implements the default log formatting.
extractParameters()
Extracts the optional extra parameters for use in action messages.