Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

Fieldgroup.php

Namespace

Drupal\Core\Render\Element

File

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

View source
<?php

namespace Drupal\Core\Render\Element;

use Drupal\Core\Render\Attribute\RenderElement;

/**
 * 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
 */
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.

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal