public function LogMessageParserInterface::parseMessagePlaceholders in Service Container 7.2
Same name and namespace in other branches
- 7 lib/Drupal/Core/Logger/LogMessageParserInterface.php \Drupal\Core\Logger\LogMessageParserInterface::parseMessagePlaceholders()
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:
- Drupal specific string placeholder format:
Values in PSR3 format will be transformed to SafeMarkup::format() format.
Parameters
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.
array $context: An array that may or may not contain placeholder variables.
Return value
array An array of the extracted message placeholders.
See also
https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-3-logg...
\Drupal\Component\Utility\SafeMarkup::format()
1 method overrides LogMessageParserInterface::parseMessagePlaceholders()
- LogMessageParser::parseMessagePlaceholders in lib/
Drupal/ Core/ Logger/ LogMessageParser.php - Parses and transforms message and its placeholders to a common format.
File
- lib/
Drupal/ Core/ Logger/ LogMessageParserInterface.php, line 37 - Contains \Drupal\Core\Logger\LogMessageParserInterface.
Class
- LogMessageParserInterface
- Defines an interface for parsing log messages and their placeholders.
Namespace
Drupal\Core\LoggerCode
public function parseMessagePlaceholders(&$message, array &$context);