return new OOUI\FieldLayout(
new OOUI\TextInputWidget( [
'value' => $summary,
+ 'infusable' => true,
] + $inputAttrs ),
[
'label' => new OOUI\HtmlSnippet( $labelText ),
'href' => $this->getContextTitle()->getLinkUrl( $cancelParams ),
'label' => new OOUI\HtmlSnippet( $this->context->msg( 'cancel' )->parse() ),
'framed' => false,
+ 'infusable' => true,
'flags' => 'destructive',
] );
} else {
'id' => $options['id'],
'name' => $name,
'selected' => $options['default'],
+ 'infusable' => true,
] ),
[
'align' => 'inline',
$buttons['save'] = new OOUI\ButtonInputWidget( [
'flags' => [ 'constructive', 'primary' ],
'label' => $this->context->msg( $buttonLabelKey )->text(),
+ 'infusable' => true,
'type' => 'submit',
] + $saveConfig );
} else {
$previewConfig = OOUI\Element::configFromHtmlAttributes( $attribs );
$buttons['preview'] = new OOUI\ButtonInputWidget( [
'label' => $this->context->msg( 'showpreview' )->text(),
+ 'infusable' => true,
'type' => 'submit'
] + $previewConfig );
} else {
$diffConfig = OOUI\Element::configFromHtmlAttributes( $attribs );
$buttons['diff'] = new OOUI\ButtonInputWidget( [
'label' => $this->context->msg( 'showdiff' )->text(),
+ 'infusable' => true,
'type' => 'submit',
] + $diffConfig );
} else {