original_string: 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');
      }
code: 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');
      }
code_tokens: 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' ) ; }
docstring: Update or add site configurations
  
  @param array<\Neos\GoogleAnalytics\Domain\Model\SiteConfiguration> $siteConfigurations Array of site configurations
  @return void
docstring_tokens: Update or add site configurations