43 public function __construct( $msg, $width, $height, ...$args ) {
44 $this->msg =
wfMessage( $msg )->params( $args );
45 $this->width = (int)
$width;
51 public function toHtml( $options = [] ) {
52 return "<div class=\"MediaTransformError\" style=\"" .
53 "width: {$this->width}px; height: {$this->height}px; display:inline-block;\">" .
59 return $this->msg->text();
63 return $this->msg->escaped();
wfMessage( $key,... $params)
This is the function for getting translated interface messages.
The Message class deals with fetching and processing of interface message into a variety of formats.