You are here

public static function EntityUpdatePrint::drushPrint in Entity Update 8

Same name and namespace in other branches
  1. 2.0.x src/EntityUpdatePrint.php \Drupal\entity_update\EntityUpdatePrint::drushPrint()

Check is CLI then run drush_print.

4 calls to EntityUpdatePrint::drushPrint()
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::safeUpdateUninstallFields in src/EntityUpdate.php
Update all entities / Uninstall fields.

File

src/EntityUpdatePrint.php, line 13

Class

EntityUpdatePrint
EntityCheck CLI Print class.

Namespace

Drupal\entity_update

Code

public static function drushPrint($message = '', $indent = 0, $handle = NULL, $newline = TRUE) {
  if (php_sapi_name() == 'cli') {
    drush_print($message, $indent, $handle, $newline);
  }
}