Problem/Motivation
Typo in API documentation at https://api.drupal.org/api/drupal/core%21includes%21form.inc/group/batch...
Proposed resolution
core/includes/form.inc
@@ -670,7 +670,7 @@ function template_preprocess_form_element_label(&$variables): void {
* foreach ($results as $result) {
- * $items[] = t('Loaded node %title.', ['%title' => $result)];
+ * $items[] = t('Loaded node %title.', ['%title' => $result]);
* }
@@ -702,7 +702,7 @@ function template_preprocess_form_element_label(&$variables): void {
* @code
* [
- * ['callback_batch_operation_1', [$arg1)],
+ * ['callback_batch_operation_1', [$arg1]],
* ]
* @endcode
Comments
Comment #2
frondeau commentedComment #3
frondeau commentedComment #4
cilefen commentedComment #5
nexusnovaz commentedIll take a quick look at this. Should be quick
Comment #7
nexusnovaz commentedI believe MR !11339 is ready for review. I also found one more which I believe was also a mistake.
Comment #8
ankitv18 commentedMinor change required on MR.
Comment #10
danrodComment #11
borisson_This looks like a good documentation update, it makes sense to fix this. The scope here is quite small, which makes sense for a novice issue.
Comment #12
sivaji_ganesh_jojodae commented+1 for RTBC.
Comment #15
nod_Committed 427d745 and pushed to 11.x. Thanks!