src/Charcoal/Ui/Form/FormTrait.php
public function setGroupDisplayMode($mode)
    {
        if (!is_string($mode)) {
            throw new InvalidArgumentException(
                'Display mode must be a string'
            );
        }

        if ($mode === 'tabs') {
            $mode = 'tab';
        }

        $this->groupDisplayMode = $mode;

        return $this;
    }
public function setGroupDisplayMode($mode)
    {
        if (!is_string($mode)) {
            throw new InvalidArgumentException(
                'Display mode must be a string'
            );
        }

        if ($mode === 'tabs') {
            $mode = 'tab';
        }

        $this->groupDisplayMode = $mode;

        return $this;
    }
public function setGroupDisplayMode ( $ mode ) { if ( ! is_string ( $ mode ) ) { throw new InvalidArgumentException ( 'Display mode must be a string' ) ; } if ( $ mode === 'tabs' ) { $ mode = 'tab' ; } $ this -> groupDisplayMode = $ mode ; return $ this ; }
Set the widget's content group display mode.

Currently only supports "tab".

@param string $mode Group display mode.
@throws InvalidArgumentException If the display mode is not a string.
@return ObjectFormWidget Chainable.
Set the widget s content group display mode .