src/FormLayout/Section/Accordion.php
public function getSectionIdx($section)
    {
        if ($section instanceof \atk4\ui\AccordionSection) {
            return parent::getSectionIdx($section);
        }

        return parent::getSectionIdx($section->owner);
    }
public function getSectionIdx($section)
    {
        if ($section instanceof \atk4\ui\AccordionSection) {
            return parent::getSectionIdx($section);
        }

        return parent::getSectionIdx($section->owner);
    }
public function getSectionIdx ( $ section ) { if ( $ section instanceof \ atk4 \ ui \ AccordionSection ) { return parent :: getSectionIdx ( $ section ) ; } return parent :: getSectionIdx ( $ section -> owner ) ; }
Return a section index.

@param AccordionSection $section

@return int
Return a section index .