setProcessedExtension example

      // need to import this before doing any. If there are no uninstalls and       // the default or admin theme is changing this will be picked up whilst       // processing configuration.       if ($op == 'uninstall' && $this->processedSystemTheme === FALSE) {
        $this->importConfig(StorageInterface::DEFAULT_COLLECTION, 'update', 'system.theme');
        $this->configManager->getConfigFactory()->reset('system.theme');
        $this->processedSystemTheme = TRUE;
      }
      \Drupal::service('theme_installer')->$op([$name]);
    }

    $this->setProcessedExtension($type$op$name);
  }

  /** * Checks that the operation is still valid. * * During a configuration import secondary writes and deletes are possible. * This method checks that the operation is still valid before processing a * configuration change. * * @param string $collection * The configuration collection. * @param string $op * The change operation. * @param string $name * The name of the configuration to process. * * @return bool * TRUE is to continue processing, FALSE otherwise. * * @throws \Drupal\Core\Config\ConfigImporterException */
Home | Imprint | This part of the site doesn't use cookies.