You are here

public function MigrateMessage::display in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate/src/MigrateMessage.php \Drupal\migrate\MigrateMessage::display()

Displays a migrate message.

Parameters

string $message: The message to display.

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

Overrides MigrateMessageInterface::display

File

core/modules/migrate/src/MigrateMessage.php, line 25

Class

MigrateMessage
Defines a migrate message class.

Namespace

Drupal\migrate

Code

public function display($message, $type = 'status') {
  $type = isset($this->map[$type]) ? $this->map[$type] : RfcLogLevel::NOTICE;
  \Drupal::logger('migrate')
    ->log($type, $message);
}