Code Coverage  | 
     ||||||||||
Classes and Traits  | 
      Functions and Methods  | 
      Lines  | 
     ||||||||
| Total |         | 
      0.00%  | 
      0 / 1  | 
              | 
      0.00%  | 
      0 / 1  | 
      CRAP |         | 
      0.00%  | 
      0 / 4  | 
     
| Value |         | 
      0.00%  | 
      0 / 1  | 
              | 
      0.00%  | 
      0 / 1  | 
      2 |         | 
      0.00%  | 
      0 / 4  | 
     
| getInfo |         | 
      0.00%  | 
      0 / 1  | 
      2 |         | 
      0.00%  | 
      0 / 4  | 
     |||
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\Core\Render\Element\Value. | |
| */ | |
| namespace Drupal\Core\Render\Element; | |
| /** | |
| * Provides a form element for storage of internal information. | |
| * | |
| * Unlike \Drupal\Core\Render\Element\Hidden, this information is not sent to | |
| * the browser in a hidden form field, but only stored in the form array for use | |
| * in validation and submit processing. | |
| * | |
| * Properties: | |
| * - #value: The value of the form element that cannot be edited by the user. | |
| * | |
| * Usage Example: | |
| * @code | |
| * $form['entity_id'] = array('#type' => 'value', '#value' => $entity_id); | |
| * @endcode | |
| * | |
| * @FormElement("value") | |
| */ | |
| class Value extends FormElement { | |
| /** | |
| * {@inheritdoc} | |
| */ | |
| public function getInfo() { | |
| return array( | |
| '#input' => TRUE, | |
| ); | |
| } | |
| } |