original_string: private function addIdentityFieldsToUser()
      {
  
          /** @var CrudService $service */
          $service = $this->container->get('shopware_attribute.crud_service');
  
          foreach (self::PROVIDERS as $provider) {
              $service->update('s_user_attributes', strtolower($provider) . '_identity', 'string', [
                  'label' => 'Identity ' . $provider,
  
                  //user has the opportunity to translate the attribute field for each shop
                  'translatable' => false,
  
                  //attribute will be displayed in the backend module
                  'displayInBackend' => true,
  
                  //in case of multi_selection or single_selection type, article entities can be selected,
                  'entity' => Customer::class,
  
                  //numeric position for the backend view, sorted ascending
                  'position' => 100,
  
                  //user can modify the attribute in the free text field module
                  'custom' => false,
              ]);
          }
  
          $models = $this->container->get('models');
          $metaDataCache = $models->getConfiguration()->getMetadataCacheImpl();
          $metaDataCache->deleteAll();
          $models->generateAttributeModels(['s_user_attributes']);
      }
code: private function addIdentityFieldsToUser()
      {
  
          /** @var CrudService $service */
          $service = $this->container->get('shopware_attribute.crud_service');
  
          foreach (self::PROVIDERS as $provider) {
              $service->update('s_user_attributes', strtolower($provider) . '_identity', 'string', [
                  'label' => 'Identity ' . $provider,
  
                  //user has the opportunity to translate the attribute field for each shop
                  'translatable' => false,
  
                  //attribute will be displayed in the backend module
                  'displayInBackend' => true,
  
                  //in case of multi_selection or single_selection type, article entities can be selected,
                  'entity' => Customer::class,
  
                  //numeric position for the backend view, sorted ascending
                  'position' => 100,
  
                  //user can modify the attribute in the free text field module
                  'custom' => false,
              ]);
          }
  
          $models = $this->container->get('models');
          $metaDataCache = $models->getConfiguration()->getMetadataCacheImpl();
          $metaDataCache->deleteAll();
          $models->generateAttributeModels(['s_user_attributes']);
      }
code_tokens: private function addIdentityFieldsToUser ( ) { /** @var CrudService $service */ $ service = $ this -> container -> get ( 'shopware_attribute.crud_service' ) ; foreach ( self :: PROVIDERS as $ provider ) { $ service -> update ( 's_user_attributes' , strtolower ( $ provider ) . '_identity' , 'string' , [ 'label' => 'Identity ' . $ provider , //user has the opportunity to translate the attribute field for each shop 'translatable' => false , //attribute will be displayed in the backend module 'displayInBackend' => true , //in case of multi_selection or single_selection type, article entities can be selected, 'entity' => Customer :: class , //numeric position for the backend view, sorted ascending 'position' => 100 , //user can modify the attribute in the free text field module 'custom' => false , ] ) ; } $ models = $ this -> container -> get ( 'models' ) ; $ metaDataCache = $ models -> getConfiguration ( ) -> getMetadataCacheImpl ( ) ; $ metaDataCache -> deleteAll ( ) ; $ models -> generateAttributeModels ( [ 's_user_attributes' ] ) ; }
docstring: Adds the identity attribute to the customer model.
  
  @return void
  @throws \Exception
docstring_tokens: Adds the identity attribute to the customer model .