protected function _detectFormAlignment($options)
    {
        foreach (['horizontal', 'inline'] as $align) {
            if ($this->checkClasses('form-' . $align, $options)) {
                return $align;
            }
        }

        return $this->getConfig('align');
    }
protected function _detectFormAlignment($options)
    {
        foreach (['horizontal', 'inline'] as $align) {
            if ($this->checkClasses('form-' . $align, $options)) {
                return $align;
            }
        }

        return $this->getConfig('align');
    }
protected function _detectFormAlignment ( $ options ) { foreach ( [ 'horizontal' , 'inline' ] as $ align ) { if ( $ this -> checkClasses ( 'form-' . $ align , $ options ) ) { return $ align ; } } return $ this -> getConfig ( 'align' ) ; }
Detects the form alignment when possible.

@param array $options Options.
@return string Form alignment type. One of `default`, `horizontal` or `inline`.
Detects the form alignment when possible .