protected function renderArray()
{
if (count($this->variablesToRender) === 1) {
$variableName = current($this->variablesToRender);
$valueToRender = isset($this->variables[$variableName]) ? $this->variables[$variableName] : null;
$configuration = isset($this->configuration[$variableName]) ? $this->configuration[$variableName] : [];
} else {
$valueToRender = [];
foreach ($this->variablesToRender as $variableName) {
$valueToRender[$variableName] = isset($this->variables[$variableName]) ? $this->variables[$variableName] : null;
}
$configuration = $this->configuration;
}
return $this->transformValue($valueToRender, $configuration);
}