
| Current Path : /var/www/html/rocksensor3/web/core/lib/Drupal/Core/Render/Element/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/rocksensor3/web/core/lib/Drupal/Core/Render/Element/Value.php |
<?php
namespace Drupal\Core\Render\Element;
use Drupal\Core\Render\Attribute\FormElement;
/**
* 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'] = ['#type' => 'value', '#value' => $entity_id];
* @endcode
*/
#[FormElement('value')]
class Value extends FormElementBase {
/**
* {@inheritdoc}
*/
public function getInfo() {
return [
'#input' => TRUE,
];
}
}