You are here

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

Class

EntityConfigurationHandler

Namespace

Configuration\Handlers

Code

public function removeFromDatabase(Configuration $configuration) {
  $name = $this
    ->getInternalId($configuration
    ->getIdentifier());
  $event = $this
    ->triggerEvent('remove_from_database', $configuration);
  $entity = $event->configuration
    ->getData();
  $this->configuration_manager
    ->drupal()
    ->entity_delete($this
    ->getType(), $entityid->id);
}