
| Current Path : /var/www/html/rocksensor/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/rocksensor/web/core/lib/Drupal/Core/Render/Element/Fieldset.php |
<?php
namespace Drupal\Core\Render\Element;
use Drupal\Core\Render\Attribute\RenderElement;
/**
* Provides a render element for a group of form elements.
*
* Usage example:
* @code
* $form['author'] = [
* '#type' => 'fieldset',
* '#title' => $this->t('Author'),
* ];
*
* $form['author']['name'] = [
* '#type' => 'textfield',
* '#title' => $this->t('Name'),
* ];
* @endcode
*
* @see \Drupal\Core\Render\Element\Fieldgroup
* @see \Drupal\Core\Render\Element\Details
*/
#[RenderElement('fieldset')]
class Fieldset extends RenderElementBase {
/**
* {@inheritdoc}
*/
public function getInfo() {
$class = static::class;
return [
'#process' => [
[$class, 'processGroup'],
[$class, 'processAjaxForm'],
],
'#pre_render' => [
[$class, 'preRenderGroup'],
],
'#value' => NULL,
'#theme_wrappers' => ['fieldset'],
];
}
}