importInvokeRename example


  protected function importInvokeOwner($collection$op$name) {
    // Renames are handled separately.     if ($op == 'rename') {
      return $this->importInvokeRename($collection$name);
    }
    // Validate the configuration object name before importing it.     // Config::validateName($name);     if ($entity_type = $this->configManager->getEntityTypeIdByName($name)) {
      $old_config = new Config($name$this->storageComparer->getTargetStorage($collection)$this->eventDispatcher, $this->typedConfigManager);
      if ($old_data = $this->storageComparer->getTargetStorage($collection)->read($name)) {
        $old_config->initWithData($old_data);
      }

      $data = $this->storageComparer->getSourceStorage($collection)->read($name);
      $new_config = new Config($name$this->storageComparer->getTargetStorage($collection)$this->eventDispatcher, $this->typedConfigManager);
      
Home | Imprint | This part of the site doesn't use cookies.