You are here

class StubMigrationMessage in Migrate source UI 8

A stub migrate message.

Hierarchy

Expanded class hierarchy of StubMigrationMessage

1 file declares its use of StubMigrationMessage
MigrateSourceUiForm.php in src/Form/MigrateSourceUiForm.php

File

src/StubMigrationMessage.php, line 11

Namespace

Drupal\migrate_source_ui
View source
class StubMigrationMessage implements MigrateMessageInterface {
  use MessengerTrait;

  /**
   * Output a message from the migration.
   *
   * @param string $message
   *   The message to display.
   * @param string $type
   *   The type of message to display.
   *
   * @see drupal_set_message()
   */
  public function display($message, $type = 'status') {
    $this
      ->messenger()
      ->addMessage($message, $type);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MessengerTrait::$messenger protected property The messenger. 29
MessengerTrait::messenger public function Gets the messenger. 29
MessengerTrait::setMessenger public function Sets the messenger.
StubMigrationMessage::display public function Output a message from the migration. Overrides MigrateMessageInterface::display