You are here

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

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

Check is CLI then run 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::safeUpdateFields in src/EntityUpdate.php
Update fields.

File

src/EntityUpdatePrint.php, line 40

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') {
    self::echoPrint($message, $indent, $handle, $newline);
  }
}