/**
* Creates a tab pane
*
* @param string $selector The pane identifier. Expects a valid ID without the #!
* @param array $params The parameters for the pane
*
* @return string
*
* @since 3.1
*/
public static function startTabSet($selector = 'myTab', $params = []) : string
{
$sig = md5(serialize([$selector, $params]));
if (!isset(static::$loaded[__METHOD__][$sig])) {
// Setup options object
$opt['active'] = isset($params['active']) && $params['active'] ? (string) $params['active'] : '';
// Initialise with the Joomla specifics
$opt['isJoomla'] = true;
// Include the Bootstrap Tab Component
HTMLHelper::_('bootstrap.tab', '#' . preg_replace('/^[\\.#]/', '', $selector), $opt);
// Set static array
static::$loaded[__METHOD__][$sig] = true;
static::$loaded[__METHOD__][$selector]['active'] = $opt['active'];
return LayoutHelper::render('libraries.html.bootstrap.tab.starttabset', ['selector' => $selector]);
}
}