File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
lib/Drupal/Core/Render/Element Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 1818 *
1919 * Usage example:
2020 * @code
21- * $form['needs_accommodation'] = array(
21+ * $form['needs_accommodation'] = [
2222 * '#type' => 'checkbox',
2323 * '#title' => $this->t('Need Special Accommodations?'),
24- * ) ;
24+ * ] ;
2525 *
26- * $form['accommodation'] = array(
26+ * $form['accommodation'] = [
2727 * '#type' => 'container',
28- * '#attributes' => array(
29- * 'class' => 'accommodation',
30- * ) ,
31- * '#states' => array(
32- * 'invisible' => array(
33- * 'input[name="needs_accommodation"]' => array( 'checked' => FALSE) ,
34- * ) ,
35- * ) ,
36- * ) ;
28+ * '#attributes' => [
29+ * 'class' => [ 'accommodation'] ,
30+ * ] ,
31+ * '#states' => [
32+ * 'invisible' => [
33+ * 'input[name="needs_accommodation"]' => [ 'checked' => FALSE] ,
34+ * ] ,
35+ * ] ,
36+ * ] ;
3737 *
38- * $form['accommodation']['diet'] = array(
38+ * $form['accommodation']['diet'] = [
3939 * '#type' => 'textfield',
4040 * '#title' => $this->t('Dietary Restrictions'),
41- * ) ;
41+ * ] ;
4242 * @endcode
4343 *
4444 * @RenderElement("container")
You can’t perform that action at this time.
0 commit comments