Verified Commit 427d7455 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3510498 by nexusnovaz, danrod, frondeau, ankitv18, borisson_: Fix...

Issue #3510498 by nexusnovaz, danrod, frondeau, ankitv18, borisson_: Fix parentheses mistake in sample code documentation
parent 15fa2d85
Loading
Loading
Loading
Loading
Loading
+2 −2
Changes for core/includes/form.inc: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -670,7 +670,7 @@ function template_preprocess_form_element_label(&$variables): void {
 *   \Drupal::messenger()->addMessage($message);
 *   // Providing data for the redirected page is done through the session.
 *   foreach ($results as $result) {
 *     $items[] = t('Loaded node %title.', ['%title' => $result)];
 *     $items[] = t('Loaded node %title.', ['%title' => $result]);
 *   }
 *   $session = \Drupal::getRequest()->getSession();
 *   $session->set('my_batch_results', $items);
@@ -702,7 +702,7 @@ function template_preprocess_form_element_label(&$variables): void {
 *     Example:
 *     @code
 *     [
 *       ['callback_batch_operation_1', [$arg1)],
 *       ['callback_batch_operation_1', [$arg1]],
 *       ['callback_batch_operation_2', [$arg2_1, $arg2_2]],
 *     ]
 *     @endcode