public static function EntityUpdatePrint::drushLog in Entity Update 8
Same name and namespace in other branches
- 2.0.x 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.
File
- src/
EntityUpdatePrint.php, line 22
Class
- EntityUpdatePrint
- EntityCheck CLI Print class.
Namespace
Drupal\entity_updateCode
public static function drushLog($message, $type = LogLevel::NOTICE, $error = NULL, $ui_print = FALSE) {
if (php_sapi_name() == 'cli') {
drush_log($message, $type, $error);
}
elseif ($ui_print) {
drupal_set_message($message, $type);
}
}