public function tabs(): array
    {
        if ( ! $this->layout || ! count($this->layout)) {
            return [];
        }

        $tabs = [];

        foreach ($this->layout as $key => $value) {

            if ($value instanceof ModelFormTabDataInterface) {
                $tabs[ $key ] = $value;
            }
        }

        return $tabs;
    }
public function tabs(): array
    {
        if ( ! $this->layout || ! count($this->layout)) {
            return [];
        }

        $tabs = [];

        foreach ($this->layout as $key => $value) {

            if ($value instanceof ModelFormTabDataInterface) {
                $tabs[ $key ] = $value;
            }
        }

        return $tabs;
    }
public function tabs ( ) : array { if ( ! $ this -> layout || ! count ( $ this -> layout ) ) { return [ ] ; } $ tabs = [ ] ; foreach ( $ this -> layout as $ key => $ value ) { if ( $ value instanceof ModelFormTabDataInterface ) { $ tabs [ $ key ] = $ value ; } } return $ tabs ; }
Returns only the tabs from the layout set.

@return array|ModelFormTabData[]
Returns only the tabs from the layout set .