Commit ef721573 authored by SpadXIII's avatar SpadXIII Committed by Erik Stielstra

Issue #2940301 by SpadXIII, timplunkett: Warning: Illegal offset type in isset or empty

parent 010d52a3
......@@ -201,7 +201,7 @@ class FieldBlock extends BlockBase implements ContainerFactoryPluginInterface {
}
else {
if (empty($formatter_id)) {
$formatter_id = reset($formatter_options);
$formatter_id = key($formatter_options);
}
$form['formatter']['id'] = [
'#title' => $this->t('Formatter'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment