TypedConfigManager example


  protected static $modules = ['views_test_data'];

  /** * Tests default configuration data type. */
  public function testDefaultConfig() {
    // Create a typed config manager with access to configuration schema in     // every module, profile and theme.     $typed_config = new TypedConfigManager(
      \Drupal::service('config.storage'),
      new TestInstallStorage(InstallStorage::CONFIG_SCHEMA_DIRECTORY),
      \Drupal::service('cache.discovery'),
      \Drupal::service('module_handler'),
      \Drupal::service('class_resolver')
    );

    // Create a configuration storage with access to default configuration in     // every module, profile and theme.     $default_config_storage = new TestInstallStorage('test_views');

    
Home | Imprint | This part of the site doesn't use cookies.