ConfigManagerInterface
interface ConfigManagerInterface (View source)
Provides an interface for configuration manager.
Methods
Returns the entity type of a configuration object.
Loads a configuration entity using the configuration name.
Gets the entity type manager.
Gets the config factory.
Creates a Diff object using the config data from the two storages.
Creates a configuration snapshot following a successful import.
Uninstalls the configuration of a given extension.
Creates and populates a ConfigDependencyManager object.
Finds config entities that are dependent on extensions or entities.
Finds config entities that are dependent on extensions or entities.
Deprecated method to find config entity dependencies.
Deprecated method to find config entity dependencies as entities.
Lists which config entities to update and delete on removal of a dependency.
Gets available collection information using the event system.
Finds missing content dependencies declared in configuration entities.
Details
string|null
getEntityTypeIdByName(string $name)
Returns the entity type of a configuration object.
EntityInterface|null
loadConfigEntityByName(string $name)
Loads a configuration entity using the configuration name.
EntityTypeManagerInterface
getEntityTypeManager()
Gets the entity type manager.
ConfigFactoryInterface
getConfigFactory()
Gets the config factory.
Diff
diff(StorageInterface $source_storage, StorageInterface $target_storage, string $source_name, string $target_name = NULL, string $collection = StorageInterface::DEFAULT_COLLECTION)
Creates a Diff object using the config data from the two storages.
createSnapshot(StorageInterface $source_storage, StorageInterface $snapshot_storage)
Creates a configuration snapshot following a successful import.
uninstall(string $type, string $name)
Uninstalls the configuration of a given extension.
ConfigDependencyManager
getConfigDependencyManager()
Creates and populates a ConfigDependencyManager object.
The configuration dependency manager is populated with data from the active store.
ConfigEntityDependency[]
findConfigEntityDependencies(string $type, array $names)
Finds config entities that are dependent on extensions or entities.
ConfigEntityInterface[]
findConfigEntityDependenciesAsEntities(string $type, array $names)
Finds config entities that are dependent on extensions or entities.
ConfigEntityDependency[]
findConfigEntityDependents(string $type, array $names)
deprecated
deprecated
Deprecated method to find config entity dependencies.
ConfigEntityInterface[]
findConfigEntityDependentsAsEntities(string $type, array $names)
deprecated
deprecated
Deprecated method to find config entity dependencies as entities.
array
getConfigEntitiesToChangeOnDependencyRemoval(string $type, array $names, bool $dry_run = TRUE)
Lists which config entities to update and delete on removal of a dependency.
ConfigCollectionInfo
getConfigCollectionInfo()
Gets available collection information using the event system.
array
findMissingContentDependencies()
Finds missing content dependencies declared in configuration entities.