Patched to Drupal 8.4.8 level. See https://www.drupal.org/sa-core-2018-004 and patch...
[yaffs-website] / web / core / lib / Drupal / Core / Installer / Exception / NoProfilesException.php
1 <?php
2
3 namespace Drupal\Core\Installer\Exception;
4
5 use Drupal\Core\StringTranslation\TranslationInterface;
6
7 /**
8  * Exception thrown if no installation profiles are available.
9  */
10 class NoProfilesException extends InstallerException {
11
12   /**
13    * Constructs a new "no profiles available" exception.
14    *
15    * @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
16    *   The string translation manager.
17    */
18   public function __construct(TranslationInterface $string_translation) {
19     $this->stringTranslation = $string_translation;
20
21     $title = $this->t('No profiles available');
22     $message = $this->t('We were unable to find any installation profiles. Installation profiles tell us what modules to enable and what schema to install in the database. A profile is necessary to continue with the installation process.');
23     parent::__construct($message, $title);
24   }
25
26 }