File tree Expand file tree Collapse file tree 1 file changed +15
-12
lines changed 
reference/forms/types/options Expand file tree Collapse file tree 1 file changed +15
-12
lines changed Original file line number Diff line number Diff line change 1- * `` disabled`` [type: Boolean, default: false] 
2-  If you don't want a user to modify the value of a field, you can set  
3-  the disabled option to true. Any submitted value will be ignored. 
1+ disabled
2+ ~~~~~~~~ 
3+ **type**: ``boolean`` **default**: ``false`` 
44
5-  .. code-block:: php
5+ If you don't want a user to modify the value of a field, you can set 
6+ the disabled option to true. Any submitted value will be ignored.
67
7-  use Symfony\Component\Form\TextField
8+ .. code-block:: php
9+ 
10+  use Symfony\Component\Form\TextField
811
9-    $field = new TextField('status', array(
10-    'data' => 'Old data',
11-    'disabled' => true,
12-    ));
13-    $field->submit('New data');
12+  $field = new TextField('status', array(
13+  'data' => 'Old data',
14+  'disabled' => true,
15+  ));
16+  $field->submit('New data');
1417
15-    // prints "Old data"
16-    echo $field->getData();
18+  // prints "Old data"
19+  echo $field->getData();
1720
1821
                                 You can’t perform that action at this time. 
               
                  
0 commit comments