getArrayCopy()]; $options->setConfigurationDefault('list-orientation', true); $tableTransformer = $this->createTableTransformation($data, $options); return $tableTransformer; } public function getListData(FormatterOptions $options) { $data = $this->getArrayCopy(); $defaults = $this->defaultOptions(); $fieldLabels = $this->getReorderedFieldLabels([$data], $options, $defaults); $result = []; foreach ($fieldLabels as $id => $label) { $result[$id] = $data[$id]; } return $result; } protected function defaultOptions() { return [ FormatterOptions::LIST_ORIENTATION => true, ] + parent::defaultOptions(); } protected function instantiateTableTransformation($data, $fieldLabels, $rowLabels) { return new PropertyListTableTransformation($data, $fieldLabels, $rowLabels); } }