You are here

protected function FormManipulationTrait::boolToString in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/jcalderonzumba/mink-phantomjs-driver/src/FormManipulationTrait.php \Zumba\Mink\Driver\FormManipulationTrait::boolToString()

Helper method needed for twig and javascript stuff

Parameters

$boolValue:

Return value

string

1 call to FormManipulationTrait::boolToString()
FormManipulationTrait::setValue in vendor/jcalderonzumba/mink-phantomjs-driver/src/FormManipulationTrait.php

File

vendor/jcalderonzumba/mink-phantomjs-driver/src/FormManipulationTrait.php, line 62

Class

FormManipulationTrait
Trait FormManipulationTrait @package Zumba\Mink\Driver

Namespace

Zumba\Mink\Driver

Code

protected function boolToString($boolValue) {
  if ($boolValue === true) {
    return "1";
  }
  return "0";
}