Yuki 在 2022-03-07 14:21 星期一 提交
其中使用了 number_format 修改十进制数
function _entity_token_get_token($wrapper, $options) {
if (!$wrapper || $wrapper->value() === NULL) {
// Do not provide a replacement if there is no value.
return NULL;
}
if (empty($options['sanitize'])) {
// When we don't need sanitized tokens decode already sanitizied texts.
$options['decode'] = TRUE;
}
$langcode = isset($options['language']) ? $options['language']->language : NULL;
// If there is a label for a property, e.g. defined by an options list or an
// entity label, make use of it.