9use InvalidArgumentException;
29 throw new InvalidArgumentException(
'$linkRequests must not be empty' );
40 foreach ( $this->linkRequests as $req ) {
41 $description = $req->describeCredentials();
42 $options[$req->getUniqueId()] =
wfMessage(
43 'authprovider-confirmlink-option',
44 $description[
'provider']->text(), $description[
'account']->text()
48 'confirmedLinkIDs' => [
49 'type' =>
'multiselect',
50 'options' => $options,
51 'label' =>
wfMessage(
'authprovider-confirmlink-request-label' ),
52 'help' =>
wfMessage(
'authprovider-confirmlink-request-help' ),
64 foreach ( $this->linkRequests as $req ) {
65 $ids[] = $req->getUniqueId();
67 return parent::getUniqueId() .
':' . implode(
'|', $ids );
76 $ret =
new static( $data[
'linkRequests'] );
77 foreach ( $data as $k => $v ) {
wfMessage( $key,... $params)
This is the function for getting translated interface messages.