You are here

public function LagoonLogsLogProcessor::__invoke in Lagoon Logs 8

Parameters

array $record:

Return value

array

File

src/LagoonLogsLogProcessor.php, line 20

Class

LagoonLogsLogProcessor

Namespace

Drupal\lagoon_logs

Code

public function __invoke(array $record) {
  foreach ($this->processData as $key => $value) {
    if (empty($record[$key])) {
      $record[$key] = $value;
    }
  }
  return $record;
}