You are here

public function MediaSettingsOverride::createConfigObject in Media Download 1.0.x

Same name and namespace in other branches
  1. 1.2.x src/MediaSettingsOverride.php \Drupal\media_download\MediaSettingsOverride::createConfigObject()
  2. 1.1.x src/MediaSettingsOverride.php \Drupal\media_download\MediaSettingsOverride::createConfigObject()

Creates a configuration object for use during install and synchronization.

If the overrider stores its overrides in configuration collections then it can have its own implementation of \Drupal\Core\Config\StorableConfigBase. Configuration overriders can link themselves to a configuration collection by listening to the \Drupal\Core\Config\ConfigEvents::COLLECTION_INFO event and adding the collections they are responsible for. Doing this will allow installation and synchronization to use the overrider's implementation of StorableConfigBase.

Parameters

string $name: The configuration object name.

string $collection: The configuration collection.

Return value

\Drupal\Core\Config\StorableConfigBase The configuration object for the provided name and collection.

Overrides ConfigFactoryOverrideInterface::createConfigObject

See also

\Drupal\Core\Config\ConfigCollectionInfo

\Drupal\Core\Config\ConfigImporter::importConfig()

\Drupal\Core\Config\ConfigInstaller::createConfiguration()

File

src/MediaSettingsOverride.php, line 24

Class

MediaSettingsOverride
Overrides the Media module's settings to forcibly enable standalone URL.

Namespace

Drupal\media_download

Code

public function createConfigObject($name, $collection = StorageInterface::DEFAULT_COLLECTION) {
  return NULL;
}