src/Component/ContentElement/TabSeparatorElement.php
protected function prepareTemplateData(array $data): array
    {
        $iterator = $this->getIterator();
        $parent   = $this->getParent();
        $data     = parent::prepareTemplateData($data);

        $data['fade'] = ($parent && $parent->bs_tab_fade) ? ' fade' : '';

        if ($iterator) {
            $iterator->next();

            if ($iterator->valid()) {
                $currentItem = $iterator->current();

                $data['currentItem'] = $currentItem;

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

        return $data;
    }
protected function prepareTemplateData(array $data): array
    {
        $iterator = $this->getIterator();
        $parent   = $this->getParent();
        $data     = parent::prepareTemplateData($data);

        $data['fade'] = ($parent && $parent->bs_tab_fade) ? ' fade' : '';

        if ($iterator) {
            $iterator->next();

            if ($iterator->valid()) {
                $currentItem = $iterator->current();

                $data['currentItem'] = $currentItem;

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

        return $data;
    }
{@inheritDoc}