You are here

public function MigrateMessageCapture::display in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/migrate_drupal_ui/src/Batch/MigrateMessageCapture.php \Drupal\migrate_drupal_ui\Batch\MigrateMessageCapture::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_drupal_ui/src/Batch/MigrateMessageCapture.php, line 22

Class

MigrateMessageCapture
Allows capturing messages rather than displaying them directly.

Namespace

Drupal\migrate_drupal_ui\Batch

Code

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