Page MenuHomeWickedGov Phorge

TransformParameterError.php
No OneTemporary

Size
637 B
Referenced Files
None
Subscribers
None

TransformParameterError.php

<?php
/**
* Base class for the output of file transformation methods.
*
* @license GPL-2.0-or-later
* @file
* @ingroup Media
*/
/**
* Shortcut class for parameter validation errors
*
* @newable
* @ingroup Media
*/
class TransformParameterError extends MediaTransformError {
/**
* @stable to call
*
* @param array $params
*/
public function __construct( $params ) {
parent::__construct( 'thumbnail_error',
max( $params['width'] ?? 0, 120 ),
max( $params['height'] ?? 0, 120 ),
wfMessage( 'thumbnail_invalid_params' )
);
}
/** @inheritDoc */
public function getHttpStatusCode() {
return 400;
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 18 2026, 10:03 (6 w, 20 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
89/9b/280fd4a381d021bca57391ac0cab
Default Alt Text
TransformParameterError.php (637 B)

Event Timeline