public UnmetDependenciesException::getTranslatedMessage(TranslationInterface $string_translation, $extension)
Gets a translated message from the exception.
Parameters
\Drupal\Core\StringTranslation\TranslationInterface $string_translation: The string translation service.
Return value
string
File
- core/lib/Drupal/Core/Config/UnmetDependenciesException.php, line 55
Class
- UnmetDependenciesException
- An exception thrown if configuration has unmet dependencies.
Namespace
Drupal\Core\Config
Code
1 2 3 4 5 6 7 8 9 10 11 | public function getTranslatedMessage(TranslationInterface $string_translation , $extension ) { return $string_translation ->formatPlural( count ( $this ->getConfigObjects()), 'Unable to install @extension, %config_names has unmet dependencies.' , 'Unable to install @extension, %config_names have unmet dependencies.' , [ '%config_names' => implode( ', ' , $this ->getConfigObjects()), '@extension' => $extension , ] ); } |
Please login to continue.