Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. UnmetDependenciesException.php

function UnmetDependenciesException::getTranslatedMessage

Gets a translated message from the exception.

Parameters

\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.

string $extension: The name of the extension that is being installed.

Return value

string

File

core/lib/Drupal/Core/Config/UnmetDependenciesException.php, line 70

Class

UnmetDependenciesException
An exception thrown if configuration has unmet dependencies.

Namespace

Drupal\Core\Config

Code

public function getTranslatedMessage(TranslationInterface $string_translation, $extension) {
    return $string_translation->translate('Unable to install %extension due to unmet dependencies: %config_names', [
        '%config_names' => static::formatConfigObjectList($this->configObjects),
        '%extension' => $extension,
    ]);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal