2 namespace Drush\Drupal;
8 * Output a Drupal render array, object or string as plain text.
14 * The plain-text representation of the input.
16 public static function drushRender($data)
18 if (is_array($data)) {
19 $data = \Drupal::service('renderer')->renderRoot($data);
22 $data = \Drupal\Core\Mail\MailFormatHelper::htmlToText($data);