src/Security/Security.php
protected function aggregateTabbedForms(array $results)
    {
        $forms = [];
        foreach ($results as $authName => $singleResult) {
            // The result *must* be an array with a Form key
            if (!is_array($singleResult) || !isset($singleResult['Form'])) {
                user_error('Authenticator "' . $authName . '" doesn\'t support tabbed forms', E_USER_WARNING);
                continue;
            }

            $forms[] = $singleResult['Form'];
        }

        if (!$forms) {
            throw new \LogicException('No authenticators found compatible with tabbed forms');
        }

        return [
            'Forms' => ArrayList::create($forms),
            'Form' => $this->generateTabbedFormSet($forms)
        ];
    }
protected function aggregateTabbedForms(array $results)
    {
        $forms = [];
        foreach ($results as $authName => $singleResult) {
            // The result *must* be an array with a Form key
            if (!is_array($singleResult) || !isset($singleResult['Form'])) {
                user_error('Authenticator "' . $authName . '" doesn\'t support tabbed forms', E_USER_WARNING);
                continue;
            }

            $forms[] = $singleResult['Form'];
        }

        if (!$forms) {
            throw new \LogicException('No authenticators found compatible with tabbed forms');
        }

        return [
            'Forms' => ArrayList::create($forms),
            'Form' => $this->generateTabbedFormSet($forms)
        ];
    }
protected function aggregateTabbedForms ( array $ results ) { $ forms = [ ] ; foreach ( $ results as $ authName => $ singleResult ) { // The result *must* be an array with a Form key if ( ! is_array ( $ singleResult ) || ! isset ( $ singleResult [ 'Form' ] ) ) { user_error ( 'Authenticator "' . $ authName . '" doesn\'t support tabbed forms' , E_USER_WARNING ) ; continue ; } $ forms [ ] = $ singleResult [ 'Form' ] ; } if ( ! $ forms ) { throw new \ LogicException ( 'No authenticators found compatible with tabbed forms' ) ; } return [ 'Forms' => ArrayList :: create ( $ forms ) , 'Form' => $ this -> generateTabbedFormSet ( $ forms ) ] ; }
Aggregate tabbed forms from each handler to fragments ready to be rendered.

@skipUpgrade
@param array $results
@return array
Aggregate tabbed forms from each handler to fragments ready to be rendered .