You are here

public function TextFormatConfigurationHandler::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/TextFormatConfigurationHandler.php, line 67

Class

TextFormatConfigurationHandler

Namespace

Configuration\Handlers

Code

public function removeFromDatabase(Configuration $configuration) {
  $name = $this
    ->getInternalId($configuration
    ->getIndentifier());
  $this->configuration_manager
    ->drupal()
    ->filter_format_load($name);
  $this->configuration_manager
    ->drupal()
    ->filter_format_disable($format);
  $event = $this
    ->triggerEvent('remove_from_database', $configuration);
}