$requirement=$this->t('When using MariaDB, minimum version is 10.3.7');
if(version_compare($version,'10.3.7')>=0){
$database_type_full_name='MySQL or Percona Server';
$requirement=$this->t('When using MySQL/Percona, minimum version is 5.7.8');
if(version_compare($version,'5.7.8')>=0){
$class='no-known-error';
}
elseif(version_compare($version,'10.1.0')>=0){
elseif(version_compare($version,'5.6.0')>=0){
$class='known-warning';
$requirement.=' '.$this->t('Alternatively, <a href=":driver">install the MariaDB 10.1 driver for Drupal 9</a> for now.',[':driver'=>'https://www.drupal.org/project/mysql56']);
$requirement.=' '.$this->t('Alternatively, <a href=":driver">install the MySQL 5.6 driver for Drupal 9</a> for now.',[':driver'=>'https://www.drupal.org/project/mysql56']);
}
else{
$status=FALSE;
$class='known-error';
$requirement.=' '.$this->t('Once updated to at least 10.1, you can also <a href=":driver">install the MariaDB 10.1 driver for Drupal 9</a> for now.',[':driver'=>'https://www.drupal.org/project/mysql56']);
$requirement.=' '.$this->t('Once updated to at least 5.6, you can also <a href=":driver">install the MySQL 5.6 driver for Drupal 9</a> for now.',[':driver'=>'https://www.drupal.org/project/mysql56']);
}
}
else{
$database_type_full_name='MySQL or Percona Server';
$requirement=$this->t('When using MySQL/Percona, minimum version is 5.7.8');
if(version_compare($version,'5.7.8')>=0){
elseif($database_type=='mariadb'){
$database_type_full_name='MariaDB';
$requirement=$this->t('When using MariaDB, minimum version is 10.3.7');
if(version_compare($version,'10.3.7')>=0){
$class='no-known-error';
}
elseif(version_compare($version,'5.6.0')>=0){
elseif(version_compare($version,'10.1.0')>=0){
$class='known-warning';
$requirement.=' '.$this->t('Alternatively, <a href=":driver">install the MySQL 5.6 driver for Drupal 9</a> for now.',[':driver'=>'https://www.drupal.org/project/mysql56']);
$requirement.=' '.$this->t('Alternatively, <a href=":driver">install the MariaDB 10.1 driver for Drupal 9</a> for now.',[':driver'=>'https://www.drupal.org/project/mysql56']);
}
else{
$status=FALSE;
$class='known-error';
$requirement.=' '.$this->t('Once updated to at least 5.6, you can also <a href=":driver">install the MySQL 5.6 driver for Drupal 9</a> for now.',[':driver'=>'https://www.drupal.org/project/mysql56']);
}
$requirement.=' '.$this->t('Once updated to at least 10.1, you can also <a href=":driver">install the MariaDB 10.1 driver for Drupal 9</a> for now.',[':driver'=>'https://www.drupal.org/project/mysql56']);