File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
web/themes/contrib/civictheme/includes Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ function _civictheme_automated_list__selected_filters(): array {
318318 }
319319 $ selected_filters [$ key . '_ ' . $ item . '_ ' . $ value_key ] = [
320320 'url ' => \Drupal::request ()->getUriForPath (\Drupal::request ()->getPathInfo ()) . '? ' . http_build_query ($ temp_query_params ),
321- 'text ' => _civictheme_automated_list__create_filter_label ($ key , $ item, $ value_key ),
321+ 'text ' => _civictheme_automated_list__create_filter_label ($ key , $ item ),
322322 ];
323323 }
324324 }
@@ -329,8 +329,16 @@ function _civictheme_automated_list__selected_filters(): array {
329329
330330/**
331331 * Create the label correctly for each of the selected filters.
332+ *
333+ * @param string $key
334+ * The filter key.
335+ * @param string|int $value
336+ * The filter value.
337+ *
338+ * @return string
339+ * The formatted filter label.
332340 */
333- function _civictheme_automated_list__create_filter_label (string $ key , $ value , $ value_key = NULL ): string {
341+ function _civictheme_automated_list__create_filter_label (string $ key , string | int $ value ): string {
334342 // Get the value label.
335343 switch ($ key ) {
336344 case 'type ' :
You can’t perform that action at this time.
0 commit comments