* or the input's default value if it has not been set.
*
* @param WebRequest $request
- * @return string The value
+ * @return mixed The value
*/
public function loadDataFromRequest( $request ) {
if ( $request->getCheck( $this->mName ) ) {
// It might look weird, but it'll work OK.
return $this->getFieldLayoutOOUI(
new OOUI\Widget( [ 'content' => new OOUI\HtmlSnippet( $this->getDiv( $value ) ) ] ),
- [ 'infusable' => false, 'align' => 'top' ]
+ [ 'align' => 'top' ]
);
}
/**
* Get a FieldLayout (or subclass thereof) to wrap this field in when using OOUI output.
- * @param string $inputField
+ * @param OOUI\Widget $inputField
* @param array $config
* @return OOUI\FieldLayout|OOUI\ActionFieldLayout
*/
* that return value has no taint.
*
* @param string $value The value of the input
- * @return array array( $errors, $errorClass )
+ * @return array [ $errors, $errorClass ]
* @return-taint none
*/
public function getErrorsAndErrorClass( $value ) {
* Recursively forces values in an array to strings, because issues arise
* with integer 0 as a value.
*
- * @param array $array
+ * @param array|string $array
* @return array|string
*/
public static function forceToStringRecursive( $array ) {