function ConfigImporterMissingContentTest::log

Same name and namespace in other branches
  1. 10 core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php \Drupal\KernelTests\Core\Config\ConfigImporterMissingContentTest::log()

Overrides RfcLoggerTrait::log

File

core/tests/Drupal/KernelTests/Core/Config/ConfigImporterMissingContentTest.php, line 195

Class

ConfigImporterMissingContentTest
Tests importing configuration which has missing content dependencies.

Namespace

Drupal\KernelTests\Core\Config

Code

public function log($level, $message, array $context = []) : void {
  $message_placeholders = \Drupal::service('logger.log_message_parser')->parseMessagePlaceholders($message, $context);
  $this->logMessages[] = empty($message_placeholders) ? $message : strtr($message, $message_placeholders);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.