diff --git a/claro.theme b/claro.theme index 942196c..6019828 100644 --- a/claro.theme +++ b/claro.theme @@ -450,6 +450,10 @@ function claro_form_view_edit_form_alter(&$form, FormStateInterface $form_state) // // @todo: revisit after https://www.drupal.org/node/3057577 is fixed. $dummy_dropbutton = &$form['displays']['settings']['settings_content']['tab_content']['details']['top']['actions']; + + if (!$dummy_dropbutton) { + return; + } $child_keys = Element::children($dummy_dropbutton); $prefix_regex = '/(<.*class\s*= *["\']?)([^"\']*)(.*)/i'; $child_count = 0;