You are here

public function LanguageConfigurationHandler::removeFromDatabase in Configuration Management 7.3

Deletes a configuration from the database.

Parameters

\Configuration\Configuration $configuration: The configuration to be deleted.

Overrides ConfigurationHandler::removeFromDatabase

File

src/Handlers/LanguageConfigurationHandler.php, line 45

Class

LanguageConfigurationHandler

Namespace

Configuration\Handlers

Code

public function removeFromDatabase(Configuration $configuration) {
  $langcode = $this
    ->getInternalId($configuration
    ->getIdentifier());
  $event = $this
    ->triggerEvent('remove_from_database', $configuration);
  $this->configuration_manager
    ->drupal()
    ->locale_removeFromDatabase($langcode);
}