37 throw new \InvalidArgumentException(
'$linkRequests must not be empty' );
44 foreach ( $this->linkRequests as $req ) {
45 $description = $req->describeCredentials();
46 $options[$req->getUniqueId()] =
wfMessage(
47 'authprovider-confirmlink-option',
48 $description[
'provider']->text(), $description[
'account']->text()
52 'confirmedLinkIDs' => [
53 'type' =>
'multiselect',
54 'options' => $options,
55 'label' =>
wfMessage(
'authprovider-confirmlink-request-label' ),
56 'help' =>
wfMessage(
'authprovider-confirmlink-request-help' ),
63 return parent::getUniqueId() .
':' . implode(
'|', array_map(
function ( $req ) {
64 return $req->getUniqueId();
74 $ret =
new static( $data[
'linkRequests'] );
75 foreach ( $data as $k => $v ) {
wfMessage( $key,... $params)
This is the function for getting translated interface messages.