src/Component/ContentElement/TabStartElement.php
protected function prepareTemplateData(array $data): array
    {
        $data = parent::prepareTemplateData($data);

        $data['fade']     = $this->get('bs_tab_fade') ? ' fade' : '';
        $data['grid']     = $this->getGridIterator();
        $data['navClass'] = $this->get('bs_tab_nav_class');

        $iterator = $this->getIterator();
        if ($iterator) {
            $iterator->rewind();

            $currentItem = $iterator->current();

            $data['navigation']  = $iterator->navigation();
            $data['currentItem'] = $currentItem;

            if ($this->get('bs_tab_fade') && $currentItem && $currentItem->active()) {
                $data['fade'] = rtrim($data['fade'] .= ' show');
            }
        }

        return $data;
    }
protected function prepareTemplateData(array $data): array
    {
        $data = parent::prepareTemplateData($data);

        $data['fade']     = $this->get('bs_tab_fade') ? ' fade' : '';
        $data['grid']     = $this->getGridIterator();
        $data['navClass'] = $this->get('bs_tab_nav_class');

        $iterator = $this->getIterator();
        if ($iterator) {
            $iterator->rewind();

            $currentItem = $iterator->current();

            $data['navigation']  = $iterator->navigation();
            $data['currentItem'] = $currentItem;

            if ($this->get('bs_tab_fade') && $currentItem && $currentItem->active()) {
                $data['fade'] = rtrim($data['fade'] .= ' show');
            }
        }

        return $data;
    }
{@inheritDoc}