24use InvalidArgumentException;
43 throw new InvalidArgumentException(
'$linkRequests must not be empty' );
54 foreach ( $this->linkRequests as $req ) {
55 $description = $req->describeCredentials();
56 $options[$req->getUniqueId()] =
wfMessage(
57 'authprovider-confirmlink-option',
58 $description[
'provider']->text(), $description[
'account']->text()
62 'confirmedLinkIDs' => [
63 'type' =>
'multiselect',
64 'options' => $options,
65 'label' =>
wfMessage(
'authprovider-confirmlink-request-label' ),
66 'help' =>
wfMessage(
'authprovider-confirmlink-request-help' ),
78 foreach ( $this->linkRequests as $req ) {
79 $ids[] = $req->getUniqueId();
81 return parent::getUniqueId() .
':' . implode(
'|', $ids );
90 $ret =
new static( $data[
'linkRequests'] );
91 foreach ( $data as $k => $v ) {
wfMessage( $key,... $params)
This is the function for getting translated interface messages.