public function updateAction(array $siteConfigurations)
    {
        foreach ($siteConfigurations as $siteConfiguration) {
            if ($this->persistenceManager->isNewObject($siteConfiguration)) {
                $this->siteConfigurationRepository->add($siteConfiguration);
            } else {
                $this->siteConfigurationRepository->update($siteConfiguration);
            }
        }

        $this->emitSiteConfigurationChanged();

        $this->addFlashMessage('Configuration has been updated.', 'Update', null, [], 1417109043);
        $this->redirect('index');
    }
public function updateAction(array $siteConfigurations)
    {
        foreach ($siteConfigurations as $siteConfiguration) {
            if ($this->persistenceManager->isNewObject($siteConfiguration)) {
                $this->siteConfigurationRepository->add($siteConfiguration);
            } else {
                $this->siteConfigurationRepository->update($siteConfiguration);
            }
        }

        $this->emitSiteConfigurationChanged();

        $this->addFlashMessage('Configuration has been updated.', 'Update', null, [], 1417109043);
        $this->redirect('index');
    }
public function updateAction ( array $ siteConfigurations ) { foreach ( $ siteConfigurations as $ siteConfiguration ) { if ( $ this -> persistenceManager -> isNewObject ( $ siteConfiguration ) ) { $ this -> siteConfigurationRepository -> add ( $ siteConfiguration ) ; } else { $ this -> siteConfigurationRepository -> update ( $ siteConfiguration ) ; } } $ this -> emitSiteConfigurationChanged ( ) ; $ this -> addFlashMessage ( 'Configuration has been updated.' , 'Update' , null , [ ] , 1417109043 ) ; $ this -> redirect ( 'index' ) ; }
Update or add site configurations

@param array<\Neos\GoogleAnalytics\Domain\Model\SiteConfiguration> $siteConfigurations Array of site configurations
@return void
Update or add site configurations