class NoProfilesException
Same name in other branches
- 9 core/lib/Drupal/Core/Installer/Exception/NoProfilesException.php \Drupal\Core\Installer\Exception\NoProfilesException
- 8.9.x core/lib/Drupal/Core/Installer/Exception/NoProfilesException.php \Drupal\Core\Installer\Exception\NoProfilesException
- 10 core/lib/Drupal/Core/Installer/Exception/NoProfilesException.php \Drupal\Core\Installer\Exception\NoProfilesException
Exception thrown if no installation profiles are available.
Hierarchy
- class \Drupal\Core\Installer\Exception\InstallerException extends \Drupal\Core\Installer\Exception\RuntimeException uses \Drupal\Core\StringTranslation\StringTranslationTrait
- class \Drupal\Core\Installer\Exception\NoProfilesException extends \Drupal\Core\Installer\Exception\InstallerException
Expanded class hierarchy of NoProfilesException
1 file declares its use of NoProfilesException
- install.core.inc in core/
includes/ install.core.inc - API functions for installing Drupal.
File
-
core/
lib/ Drupal/ Core/ Installer/ Exception/ NoProfilesException.php, line 10
Namespace
Drupal\Core\Installer\ExceptionView source
class NoProfilesException extends InstallerException {
/**
* Constructs a new "no profiles available" exception.
*
* @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
* The string translation manager.
*/
public function __construct(TranslationInterface $string_translation) {
$this->stringTranslation = $string_translation;
$title = $this->t('No profiles available');
$message = $this->t('We were unable to find any installation profiles. Installation profiles tell us what modules to install and what schema to install in the database. A profile is necessary to continue with the installation process.');
parent::__construct($message, $title);
}
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overriden Title | Overrides |
---|---|---|---|---|---|
InstallerException::$title | protected | property | The page title to output. | ||
InstallerException::getTitle | public | function | Returns the exception page title. | ||
NoProfilesException::__construct | public | function | Constructs a new "no profiles available" exception. | Overrides InstallerException::__construct | |
StringTranslationTrait::$stringTranslation | protected | property | The string translation service. | 3 | |
StringTranslationTrait::formatPlural | protected | function | Formats a string containing a count of items. | ||
StringTranslationTrait::getNumberOfPlurals | protected | function | Returns the number of plurals supported by a given language. | ||
StringTranslationTrait::getStringTranslation | protected | function | Gets the string translation service. | ||
StringTranslationTrait::setStringTranslation | public | function | Sets the string translation service to use. | 2 | |
StringTranslationTrait::t | protected | function | Translates a string to the current language or to a given language. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.