FluidTYPO3\Flux\Form\AbstractRelationFormField::prepareConfiguration PHP Méthode

prepareConfiguration() public méthode

public prepareConfiguration ( string $type ) : array
$type string
Résultat array
    public function prepareConfiguration($type)
    {
        $configuration = parent::prepareConfiguration($type);
        $configuration['foreign_table'] = $this->getTable();
        $configuration['foreign_field'] = $this->getForeignField();
        $configuration['foreign_table_where'] = $this->getCondition();
        $configuration['foreign_table_field'] = $this->getForeignTableField();
        $configuration['foreign_unique'] = $this->getForeignUnique();
        $configuration['foreign_label'] = $this->getForeignLabel();
        $configuration['foreign_selector'] = $this->getForeignSelector();
        $configuration['foreign_sortby'] = $this->getForeignSortby();
        $configuration['foreign_default_sortby'] = $this->getForeignDefaultSortby();
        $configuration['symmetricSortBy'] = $this->getSymmetricSortby();
        $configuration['symmetricLabel'] = $this->getSymmetricLabel();
        $configuration['symmetricField'] = $this->getSymmetricField();
        $configuration['localizationMode'] = $this->getLocalizationMode();
        $configuration['localizeChildrenAtParentLocalization'] = intval($this->getLocalizeChildrenAtParentLocalization());
        $configuration['disableMovingChildrenWithParent'] = intval($this->getDisableMovingChildrenWithParent());
        $configuration['showThumbs'] = intval($this->getShowThumbnails());
        $configuration['MM'] = $this->getManyToMany();
        $configuration['MM_match_fields'] = $this->getMatchFields();
        $configuration['MM_opposite_field'] = $this->getOppositeField();
        $configuration['filter'] = $this->getFilter();
        return $configuration;
    }

Usage Example

 /**
  * @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;
 }