BootstrapUI\View\Helper\FormHelper::_detectFormAlignment PHP Метод

_detectFormAlignment() защищенный Метод

Detects the form alignment when possible.
protected _detectFormAlignment ( array $options ) : string
$options array Options.
Результат string Form alignment type. One of `default`, `horizontal` or `inline`.
    protected function _detectFormAlignment($options)
    {
        foreach (['horizontal', 'inline'] as $align) {
            if ($this->checkClasses('form-' . $align, (array) $options['class'])) {
                return $align;
            }
        }
        return $this->config('align');
    }