protected function _createFooter($buttons = null, $options = [])
{
$options += ['close' => true];
$close = $options['close'];
unset($options['close']);
$content = '';
if (!$buttons && $close) {
$content .= '<button type="button" class="btn btn-default" data-dismiss="modal">' . __('Close') . '</button>';
}
$content .= $buttons;
$options = $this->addClass($options, 'modal-footer');
return $this->_part('footer', $buttons, $options);
}