'#options' =>
$format_options,
'#default_value' =>
$this->options
['summary'
]['format'
],
'#states' =>
[ 'visible' =>
[ ':input[name="options[default_action]"]' =>
['value' => 'summary'
],
],
],
];
foreach ($summary_plugins as $id =>
$info) { $plugin =
$this->
getPlugin('style',
$id);
if (!
$plugin->
usesOptions()) { continue;
} if ($plugin) { $form['summary'
]['options'
][$id] =
[ '#prefix' => '<div id="edit-options-summary-options-' .
$id . '-wrapper">',
'#suffix' => '</div>',
'#id' => 'edit-options-summary-options-' .
$id,
'#type' => 'item',
// Trick it into checking input to make #process run.
'#input' => TRUE,
'#states' =>
[