$value) { $parameter_blueprint = $grav['config']->blueprints()->get('plugins.yt.player_parameters.' . $key); // configured value matches YouTube default -> skip parameter if (isset($parameter_blueprint['default']) && $parameter_blueprint['default'] == $value) { continue; } $filtered_player_parameters[$key] = $value; } // append query string (if any) if (!empty($filtered_player_parameters) && ($query_string = http_build_query($filtered_player_parameters))) { $url .= '?' . $query_string; } return $url; } }