You are here

public static function EntityUpdatePrint::drushLog in Entity Update 2.0.x

Same name and namespace in other branches
  1. 8 src/EntityUpdatePrint.php \Drupal\entity_update\EntityUpdatePrint::drushLog()

Check is CLI then run drush_log.

9 calls to EntityUpdatePrint::drushLog()
EntityCheck::getEntityList in src/EntityCheck.php
Get entity list.
EntityCheck::showEntityStatusCli in src/EntityCheck.php
Print entity status to the terminal.
EntityUpdate::basicUpdate in src/EntityUpdate.php
Update all empty entities.
EntityUpdate::entityUpdateDataBackupDel in src/EntityUpdate.php
Backup and delete entities before an update.
EntityUpdate::entityUpdateDataRestore in src/EntityUpdate.php
Restore entities after an update.

... See full list

File

src/EntityUpdatePrint.php, line 49

Class

EntityUpdatePrint
EntityCheck CLI Print class.

Namespace

Drupal\entity_update

Code

public static function drushLog($message, $type = LogLevel::NOTICE, $error = NULL, $ui_print = FALSE) {
  if (php_sapi_name() == 'cli') {
    self::echoPrint($message);
  }
  elseif ($ui_print) {
    \Drupal::messenger()
      ->addMessage($message, $type);
  }
}