You are here

public function MigrateMessage::display in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 30
Contains \Drupal\migrate\MigrateMessage.

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);
}