Fieldgroup.php

Same filename in other branches
  1. 8.9.x core/lib/Drupal/Core/Render/Element/Fieldgroup.php
  2. 10 core/lib/Drupal/Core/Render/Element/Fieldgroup.php
  3. 11.x core/lib/Drupal/Core/Render/Element/Fieldgroup.php

Namespace

Drupal\Core\Render\Element

File

core/lib/Drupal/Core/Render/Element/Fieldgroup.php

View source
<?php

namespace Drupal\Core\Render\Element;


/**
 * Provides a render element for a group of form elements.
 *
 * In default rendering, the only difference between a 'fieldgroup' and a
 * 'fieldset' is the CSS class applied to the containing HTML element. Normally
 * use a fieldset.
 *
 * @see \Drupal\Core\Render\Element\Fieldset for documentation and usage.
 *
 * @see \Drupal\Core\Render\Element\Fieldset
 * @see \Drupal\Core\Render\Element\Details
 *
 * @RenderElement("fieldgroup")
 */
class Fieldgroup extends Fieldset {
    public function getInfo() {
        return [
            '#attributes' => [
                'class' => [
                    'fieldgroup',
                ],
            ],
        ] + parent::getInfo();
    }

}

Classes

Title Deprecated Summary
Fieldgroup Provides a render element for a group of form elements.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.