Verified Commit 2f9239cf authored by Jess's avatar Jess
Browse files

Issue #3265929 by jonathanshaw, yogeshmpawar, quietone, xjm: Rewrite examples...

Issue #3265929 by jonathanshaw, yogeshmpawar, quietone, xjm: Rewrite examples of form options to be less culturally specific

(cherry picked from commit 5d2d2817)
parent 0bddb144
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -15,10 +15,10 @@
 *
 * Usage example:
 * @code
 * $form['high_school']['tests_taken'] = array(
 * $form['favorites']['colors'] = array(
 *   '#type' => 'checkboxes',
 *   '#options' => array('SAT' => $this->t('SAT'), 'ACT' => $this->t('ACT')),
 *   '#title' => $this->t('What standardized tests did you take?'),
 *   '#options' => array('blue' => $this->t('Blue'), 'red' => $this->t('Red')),
 *   '#title' => $this->t('Which colors do you like?'),
 *   ...
 * );
 * @endcode
@@ -26,7 +26,7 @@
 * Element properties may be set on single option items as follows.
 *
 * @code
 * $form['high_school']['tests_taken']['SAT']['#description'] = $this->t('Description for the SAT option.');
 * $form['favorites']['colors']['blue']['#description'] = $this->t('The color of the sky.');
 * @endcode
 *
 * @see \Drupal\Core\Render\Element\Radios