function SecurityAdvisoriesFetcherTest::log
Same name and namespace in other branches
- 10 core/modules/system/tests/src/Kernel/SecurityAdvisories/SecurityAdvisoriesFetcherTest.php \Drupal\Tests\system\Kernel\SecurityAdvisories\SecurityAdvisoriesFetcherTest::log()
- 11.x core/modules/system/tests/src/Kernel/SecurityAdvisories/SecurityAdvisoriesFetcherTest.php \Drupal\Tests\system\Kernel\SecurityAdvisories\SecurityAdvisoriesFetcherTest::log()
Overrides RfcLoggerTrait::log
File
-
core/
modules/ system/ tests/ src/ Kernel/ SecurityAdvisories/ SecurityAdvisoriesFetcherTest.php, line 744
Class
- SecurityAdvisoriesFetcherTest
- @coversDefaultClass <a href="/api/drupal/core%21modules%21system%21src%21SecurityAdvisories%21SecurityAdvisoriesFetcher.php/class/SecurityAdvisoriesFetcher/9" title="Defines a service to get security advisories." class="local">\Drupal\system\SecurityAdvisories\SecurityAdvisoriesFetcher</a>
Namespace
Drupal\Tests\system\Kernel\SecurityAdvisoriesCode
public function log($level, $message, array $context = []) : void {
if (isset($context['@message'])) {
$this->watchdogExceptionMessages[] = $context['@message'];
}
if ($level === RfcLogLevel::ERROR) {
$this->logErrorMessages[] = $message;
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.