/**
* Get the JavaScript command for the button
*
* @param string $url URL for popup
*
* @return string JavaScript command string
*
* @since 3.0
*/
private function _getCommand($url)
{
$url = $url ?? '';
if (strpos($url, 'http') !== 0) {
$url = Uri::base() . $url;
}
return $url;
}