src/View/Helper/ModalHelper.php
public function body($info = null, $options = []) {
        if(is_array($info)) {
            $options = $info;
            $info = null;
        }
        return $this->_createBody($info, $options);
    }
public function body($info = null, $options = []) {
        if(is_array($info)) {
            $options = $info;
            $info = null;
        }
        return $this->_createBody($info, $options);
    }
public function body ( $ info = null , $ options = [ ] ) { if ( is_array ( $ info ) ) { $ options = $ info ; $ info = null ; } return $ this -> _createBody ( $ info , $ options ) ; }
Create or open a modal body.

If `$content` is a string, create a modal body using the specified content and
`$options`.

```php
echo $this->Modal->body('Modal Content', ['class' => 'my-class']);
```

If `$content` is `null`, create a formated opening tag for a modal body using the
specified `$options`.

```php
echo $this->Modal->body(null, ['class' => 'my-class']);
```

If `$content` is an array, used it as `$options` and create a formated opening tag for
a modal body.

```php
echo $this->Modal->body(['class' => 'my-class']);
```

### Options

- `templateVars` Provide template variables for the `bodyStart` template.
- Other attributes will be assigned to the modal body element.

@param array|string $info The body content, or `null`, or an array of options.
`$options`.
@param array $options Array of options. See above.

@return string A formated opening tag for the modal body or the complete modal
body.
Create or open a modal body .