Fieldgroup.php 659 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace Drupal\Core\Render\Element;
  3. /**
  4. * Provides a render element for a group of form elements.
  5. *
  6. * In default rendering, the only difference between a 'fieldgroup' and a
  7. * 'fieldset' is the CSS class applied to the containing HTML element. Normally
  8. * use a fieldset.
  9. *
  10. * @see \Drupal\Core\Render\Element\Fieldset for documentation and usage.
  11. *
  12. * @see \Drupal\Core\Render\Element\Fieldset
  13. * @see \Drupal\Core\Render\Element\Details
  14. *
  15. * @RenderElement("fieldgroup")
  16. */
  17. class Fieldgroup extends Fieldset {
  18. public function getInfo() {
  19. return [
  20. '#attributes' => ['class' => ['fieldgroup']],
  21. ] + parent::getInfo();
  22. }
  23. }