Skip to content
Snippets Groups Projects
Commit ef721573 authored by Caspar's avatar Caspar Committed by Erik Stielstra
Browse files

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

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