41 throw new \InvalidArgumentException(
'$linkRequests must not be empty' );
52 foreach ( $this->linkRequests as $req ) {
53 $description = $req->describeCredentials();
54 $options[$req->getUniqueId()] =
wfMessage(
55 'authprovider-confirmlink-option',
56 $description[
'provider']->text(), $description[
'account']->text()
60 'confirmedLinkIDs' => [
61 'type' =>
'multiselect',
62 'options' => $options,
63 'label' =>
wfMessage(
'authprovider-confirmlink-request-label' ),
64 'help' =>
wfMessage(
'authprovider-confirmlink-request-help' ),
76 foreach ( $this->linkRequests as $req ) {
77 $ids[] = $req->getUniqueId();
79 return parent::getUniqueId() .
':' . implode(
'|', $ids );
88 $ret =
new static( $data[
'linkRequests'] );
89 foreach ( $data as $k => $v ) {
wfMessage( $key,... $params)
This is the function for getting translated interface messages.