You are here

public static function TwigConvert::integerValue in Twig Tools 8

Returns the integer value of a passed variable.

Parameters

mixed $value: The variable to get the integer equivalent value of.

Return value

int The integer value equivalent of the variable.

File

src/TwigExtension/TwigConvert.php, line 54

Class

TwigConvert
Class TwigConvert.

Namespace

Drupal\twig_tools\TwigExtension

Code

public static function integerValue($value) {
  return intval($value);
}