Form/Updater.php
private function update_components( $components )
    {
        foreach ( $components as $component ) 
        {
            // Update each component in the composite collection
            if ( $component instanceof UI\Components\Composite )
            {
                $this->update_components( $component->components );
            }
            
            // Update individual fields, as well as the composite parent field.
            if ( $component instanceof UI\ValueComponentInterface )
            {
                $this->update_component( $component );
            }
        }
    }
private function update_components( $components )
    {
        foreach ( $components as $component ) 
        {
            // Update each component in the composite collection
            if ( $component instanceof UI\Components\Composite )
            {
                $this->update_components( $component->components );
            }
            
            // Update individual fields, as well as the composite parent field.
            if ( $component instanceof UI\ValueComponentInterface )
            {
                $this->update_component( $component );
            }
        }
    }
private function update_components ( $ components ) { foreach ( $ components as $ component ) { // Update each component in the composite collection if ( $ component instanceof UI \ Components \ Composite ) { $ this -> update_components ( $ component -> components ) ; } // Update individual fields, as well as the composite parent field. if ( $ component instanceof UI \ ValueComponentInterface ) { $ this -> update_component ( $ component ) ; } } }
Update the given list of components.
Recursively calls itself fpr composite components.

@param UI\AbstractComponent $components
Update the given list of components . Recursively calls itself fpr composite components .