You are here

public function ContentTranslationDefaultsConfigOverride::createConfigObject in Open Social 10.3.x

Same name in this branch
  1. 10.3.x modules/social_features/social_featured_content/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_featured_content\ContentTranslationDefaultsConfigOverride::createConfigObject()
  2. 10.3.x modules/social_features/social_content_block/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_content_block\ContentTranslationDefaultsConfigOverride::createConfigObject()
  3. 10.3.x modules/social_features/social_featured_items/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_featured_items\ContentTranslationDefaultsConfigOverride::createConfigObject()
  4. 10.3.x modules/social_features/social_core/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_core\ContentTranslationDefaultsConfigOverride::createConfigObject()
  5. 10.3.x modules/social_features/social_follow_taxonomy/modules/social_follow_landing_page/src/ContentTranslationDefaultsConfigOverride.php \Drupal\social_follow_landing_page\ContentTranslationDefaultsConfigOverride::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

modules/social_features/social_core/src/ContentTranslationDefaultsConfigOverride.php, line 137

Class

ContentTranslationDefaultsConfigOverride
Provides content translation for the Social Core module.

Namespace

Drupal\social_core

Code

public function createConfigObject($name, $collection = StorageInterface::DEFAULT_COLLECTION) {

  // The interface says we should return an object here, but we don't care and
  // this does not seem to break anything?
  // @phpstan-ignore-next-line
  return NULL;
}