/**
* @param string $type
* @return array
*/
public function prepareConfiguration($type)
{
$configuration = parent::prepareConfiguration($type);
$configuration['foreign_match_fields'] = $this->getForeignMatchFields();
$configuration['foreign_selector_fieldTcaOverride'] = $this->getForeignSelectorFieldTcaOverride();
$configuration['foreign_types'] = $this->getForeignTypes();
$configuration['appearance'] = array('collapseAll' => $this->getCollapseAll(), 'expandSingle' => $this->getExpandSingle(), 'newRecordLinkAddTitle' => $this->getNewRecordLinkAddTitle(), 'newRecordLinkPosition' => $this->getNewRecordLinkPosition(), 'useCombination' => $this->getUseCombination(), 'useSortable' => $this->getUseSortable(), 'showPossibleLocalizationRecords' => $this->getShowPossibleLocalizationRecords(), 'showRemovedLocalizationRecords' => $this->getShowRemovedLocalizationRecords(), 'showAllLocalizationLink' => $this->getShowAllLocalizationLink(), 'showSynchronizationLink' => $this->getShowSynchronizationLink(), 'enabledControls' => $this->getEnabledControls(), 'headerThumbnail' => $this->getHeaderThumbnail(), 'levelLinksPosition' => $this->getLevelLinksPosition());
$configuration['behaviour'] = array('localizationMode' => $this->getLocalizationMode(), 'localizeChildrenAtParentLocalization' => $this->getLocalizeChildrenAtParentLocalization(), 'disableMovingChildrenWithParent' => $this->getDisableMovingChildrenWithParent());
return $configuration;
}