Mercurial > hg > isophonics-drupal-site
view core/lib/Drupal/Core/Logger/LogMessageParserInterface.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
line wrap: on
line source
<?php namespace Drupal\Core\Logger; /** * Defines an interface for parsing log messages and their placeholders. */ interface LogMessageParserInterface { /** * Parses and transforms message and its placeholders to a common format. * * For a value to be considered as a placeholder should be in the following * formats: * - PSR3 format: * @see https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logger-interface.md#12-message * - Drupal specific string placeholder format: * @see \Drupal\Component\Utility\SafeMarkup::format() * * Values in PSR3 format will be transformed to SafeMarkup::format() format. * * @param string $message * The message that contains the placeholders. * If the message is in PSR3 style, it will be transformed to * \Drupal\Component\Utility\SafeMarkup::format() style. * @param array $context * An array that may or may not contain placeholder variables. * * @return array * An array of the extracted message placeholders. */ public function parseMessagePlaceholders(&$message, array &$context); }