You are here

public static function TwigConvert::stringValue in Twig Tools 8

Returns the string value of a passed variable.

Parameters

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

Return value

string The string value equivalent of the variable.

File

src/TwigExtension/TwigConvert.php, line 80

Class

TwigConvert
Class TwigConvert.

Namespace

Drupal\twig_tools\TwigExtension

Code

public static function stringValue($value) {
  return strval($value);
}