You are here

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

Class

FieldBaseConfigurationHandler

Namespace

Configuration\Handlers

Code

public function removeFromDatabase(Configuration $configuration) {
  $field_name = $this
    ->getInternalId($configuration
    ->getIndentifier());
  $this->configuration_manager
    ->drupal()
    ->field_delete_field($field_name);
  $this->purge_batch++;
}