You are here

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

Class

ContentTypeConfigurationHandler

Namespace

Configuration\Handlers

Code

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