InstallProfileMismatchException.php in Drupal 8
File
core/lib/Drupal/Core/Installer/Exception/InstallProfileMismatchException.php
View source
<?php
namespace Drupal\Core\Installer\Exception;
use Drupal\Core\StringTranslation\TranslationInterface;
@trigger_error(__NAMESPACE__ . '/InstallProfileMismatchException is deprecated in Drupal 8.6.0 and will be removed before Drupal 9. See https://www.drupal.org/node/2538996', E_USER_DEPRECATED);
class InstallProfileMismatchException extends InstallerException {
public function __construct($selected_profile, $settings_profile, $settings_file, TranslationInterface $string_translation) {
$this->stringTranslation = $string_translation;
$title = $this
->t('Install profile mismatch');
$message = $this
->t('The selected profile %profile does not match the install_profile setting, which is %settings_profile. Cannot write updated setting to %settings_file.', [
'%profile' => $selected_profile,
'%settings_profile' => $settings_profile,
'%settings_file' => $settings_file,
]);
parent::__construct($message, $title);
}
}