You are here

protected function Dbug::varIsBoolean in dBug for Drupal 2.0.x

Same name and namespace in other branches
  1. 8 src/Dbug.php \Drupal\dbug\Dbug::varIsBoolean()
  2. 1.0.x src/Dbug.php \Drupal\dbug\Dbug::varIsBoolean()

If variable is a boolean type.

Parameters

bool $var: The variable.

1 call to Dbug::varIsBoolean()
Dbug::checkType in src/Dbug.php
Check variable type.

File

src/Dbug.php, line 358

Class

Dbug
Implementation of dBug for Drupal.

Namespace

Drupal\dbug

Code

protected function varIsBoolean($var) {
  $var = $var == 1 ? "TRUE" : "FALSE";
  $this->output[] = $var;
}