function EventBase::logMessage

Same name in other branches
  1. 9 core/modules/migrate/src/Event/EventBase.php \Drupal\migrate\Event\EventBase::logMessage()
  2. 8.9.x core/modules/migrate/src/Event/EventBase.php \Drupal\migrate\Event\EventBase::logMessage()
  3. 11.x 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);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.