72 isset( $this->mParams[
'required'] ) && $this->mParams[
'required'] !==
false
73 && !$value->toArray()[
'IPAddresses']
75 return $this->
msg(
'htmlform-required' );
78 if ( !$value->validity->isGood() ) {
79 $statusFormatter = MediaWikiServices::getInstance()->getFormatterFactory()->getStatusFormatter(
80 $this->mParent->getContext()
82 return $statusFormatter->getMessage( $value->validity );
85 if ( isset( $this->mValidationCallback ) ) {
86 return call_user_func( $this->mValidationCallback, $value, $alldata, $this->mParent );