public function ContentSyncLog::__construct in Content Synchronization 8
Same name and namespace in other branches
- 8.2 src/Logger/ContentSyncLog.php \Drupal\content_sync\Logger\ContentSyncLog::__construct()
- 3.0.x src/Logger/ContentSyncLog.php \Drupal\content_sync\Logger\ContentSyncLog::__construct()
Constructs a csLog object.
Parameters
\Drupal\Core\Database\Connection $connection: The database connection object.
\Drupal\Core\Logger\LogMessageParserInterface $parser: The parser to use when extracting message variables.
File
- src/
Logger/ ContentSyncLog.php, line 49
Class
- ContentSyncLog
- Logs events in the cs_log database table.
Namespace
Drupal\content_sync\LoggerCode
public function __construct(Connection $connection, LogMessageParserInterface $parser) {
$this->connection = $connection;
$this->parser = $parser;
}