Unverified Commit 46cc0e0f authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #2779999 by shashikant_chauhan, guilhermevp, dww, joachim, xjm: Document...

Issue #2779999 by shashikant_chauhan, guilhermevp, dww, joachim, xjm: Document checkboxes and radios element can have individual descriptions
parent cab778df
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -23,6 +23,12 @@
 * );
 * @endcode
 *
 * 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.');
 * @endcode
 *
 * @see \Drupal\Core\Render\Element\Radios
 * @see \Drupal\Core\Render\Element\Checkbox
 *
+6 −0
Original line number Diff line number Diff line
@@ -22,6 +22,12 @@
 * );
 * @endcode
 *
 * Element properties may be set on single option items as follows.
 *
 * @code
 * $form['settings']['active'][0]['#description'] = $this->t('Description for the Closed option.');
 * @endcode
 *
 * @see \Drupal\Core\Render\Element\Checkboxes
 * @see \Drupal\Core\Render\Element\Radio
 * @see \Drupal\Core\Render\Element\Select