You are here

public function RowFieldset::render in Views fieldsets 8.3

Object render().

1 call to RowFieldset::render()
RowFieldset::getContent in src/RowFieldset.php
Object getcontent().

File

src/RowFieldset.php, line 81

Class

RowFieldset

Namespace

Drupal\views_fieldsets

Code

public function render() {

  // @todo Theme hook suggestions!
  $element = [
    '#theme' => 'views_fieldsets_' . $this
      ->getWrapperType(),
    '#fields' => $this->children,
    '#legend' => Markup::create($this
      ->getLegend()),
    '#collapsible' => (bool) $this->handler->options['collapsible'],
    '#attributes' => [
      'class' => $this
        ->getClasses(),
    ],
  ];
  if ($this->handler->options['collapsed'] && $this
    ->getWrapperType() != 'div') {
    $element['#attributes']['class'][] = 'collapsed';
  }
  return render($element);
}