You are here

public function EventBase::logMessage in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate/src/Event/EventBase.php \Drupal\migrate\Event\EventBase::logMessage()
  2. 10 core/modules/migrate/src/Event/EventBase.php \Drupal\migrate\Event\EventBase::logMessage()

Logs a message using the Migrate message service.

Parameters

string $message: The message to log.

string $type: The type of message, for example: status or warning.

File

core/modules/migrate/src/Event/EventBase.php, line 56

Class

EventBase

Namespace

Drupal\migrate\Event

Code

public function logMessage($message, $type = 'status') {
  $this->message
    ->display($message, $type);
}