diff --git a/src/Element/AddressLookupElement.php b/src/Element/AddressLookupElement.php index 88dc0f4..be4bc64 100644 --- a/src/Element/AddressLookupElement.php +++ b/src/Element/AddressLookupElement.php @@ -109,6 +109,18 @@ public static function processAddressLookupElement(&$element, FormStateInterface 'class' => ['js-address-searchstring'], ], ]; + // Display title, description and help on the active element. + $properties = [ + '#title' => '#title', + '#title_display' => '#title_display', + // phpcs:ignore DrupalPractice.General.DescriptionT.DescriptionT + '#description' => '#description', + '#help' => '#help', + ]; + $element['address_search']['address_searchstring'] = array_merge( + $element['address_search']['address_searchstring'], + array_intersect_key($element, $properties) + ); $element['address_search']['address_actions'] = [ '#type' => 'container',