
| Current Path : /var/www/html_old/abn/web/modules/contrib/migrate_tools/src/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html_old/abn/web/modules/contrib/migrate_tools/src/DrushLogMigrateMessage.php |
<?php
namespace Drupal\migrate_tools;
use Drupal\Core\Logger\RfcLogLevel;
use Drupal\migrate\MigrateMessage;
use Drupal\migrate\MigrateMessageInterface;
/**
* Class DrushLogMigrateMessage.
*
* @package Drupal\migrate_tools
*/
class DrushLogMigrateMessage extends MigrateMessage implements MigrateMessageInterface {
/**
* Output a message from the migration.
*
* @param string $message
* The message to display.
* @param string $type
* The type of message to display.
*
* @see drush_log()
*/
public function display($message, $type = 'status') {
$type = isset($this->map[$type]) ? $this->map[$type] : RfcLogLevel::NOTICE;
\Drupal::service(('logger.channel.migrate_tools'))->log($type, $message);
}
}