public detokenize ( string $value ) : string | ||
$value | string | |
Результат | string |
public function detokenize(string $value) : string
{
if (false === $this->isTokenized($value)) {
return $value;
}
$value = substr($value, 24, strlen($value) - 24 - 2);
return $this->tokenizer->detokenize($value);
}
/** * Parses '<<', '@@'... * * {@inheritdoc} */ public function parse(Token $token) : string { $value = $token->getValue(); if ('' === $value) { throw ExpressionLanguageExceptionFactory::createForUnparsableToken($token); } return $this->tokenizer->detokenize(substr($value, 1)); }