public function ImageStyleConfigurationHandler::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/ ImageStyleConfigurationHandler.php, line 117
Class
Namespace
Configuration\HandlersCode
public function removeFromDatabase(Configuration $configuration) {
$name = $this
->getInternalId($configuration
->getIdentifier());
$event = $this
->triggerEvent('remove_from_database', $configuration);
$style = $event->configuration
->getData();
$this->configuration_manager
->drupal()
->image_style_delete($style);
}