public function State::logMessages in Feeds 8.3
Logs all messages.
Parameters
\Drupal\feeds\FeedInterface $feed: The feed to log messages for.
Overrides StateInterface::logMessages
See also
\Drupal\feeds\StateInterface::setMessage()
File
- src/
State.php, line 133
Class
- State
- Status of the import or clearing operation of a Feed.
Namespace
Drupal\feedsCode
public function logMessages(FeedInterface $feed) {
foreach ($this->messages as $message) {
switch ($message['type']) {
case 'status':
$message['type'] = 'info';
break;
}
\Drupal::logger('feeds')
->log($message['type'], $message['message'], [
'feed' => $feed,
]);
}
}