protected function _createHeader($title = null, $options = [])
{
$options += ['close' => true];
$close = $options['close'];
unset($options['close']);
$options = $this->addClass($options, 'modal-header');
$out = null;
if ($title) {
$out = '';
if ($close) {
$out .= $this->Html->tag('button', '×', ['type' => 'button', 'class' => 'close', 'data-dismiss' => 'modal', 'aria-hidden' => 'true']);
}
$out .= $this->Html->tag('h4', $title, ['class' => 'modal-title', 'id' => $this->_currentId ? $this->_currentId . 'Label' : false]);
}
return $this->_part('header', $out, $options);
}