mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-03 21:34:59 +00:00
adding formatter for list in spreadsheet (ods, xlsx)
This commit is contained in:
@@ -206,6 +206,14 @@ class CSVListFormatter implements FormatterInterface
|
||||
$this->prepareCacheLabels();
|
||||
}
|
||||
|
||||
if (!\array_key_exists($key, $this->labelsCache)){
|
||||
throw new \OutOfBoundsException(sprintf("The key \"%s\" "
|
||||
. "is not present in the list of keys handled by "
|
||||
. "this query. Check your `getKeys` and `getLabels` "
|
||||
. "methods. Available keys are %s.", $key,
|
||||
\implode(", ", \array_keys($this->labelsCache))));
|
||||
}
|
||||
|
||||
return $this->labelsCache[$key]($value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user