2 namespace TYPO3\CMS\Fluid\ViewHelpers\Format;
15 use TYPO3\CMS\Fluid\Core\ViewHelper\Exception\InvalidVariableException;
105 public function render($value = null, $mode = self::CASE_UPPER)
107 return static::renderStatic(
113 $this->renderingContext
128 $value = $arguments[
'value'];
129 $mode = $arguments[
'mode'];
131 if ($value === null) {
135 if (is_null(static::$charsetConverter)) {
141 case self::CASE_LOWER:
144 case self::CASE_UPPER:
147 case self::CASE_CAPITAL:
150 case self::CASE_UNCAPITAL:
153 case self::CASE_CAPITAL_WORDS:
156 throw new InvalidVariableException(
'The case mode "' . $mode .
'" supplied to Fluid\'s format.case ViewHelper is not supported.', 1358349150);