public function ContentDatabaseStorage::cs_delete in Content Synchronization 8.2
Same name and namespace in other branches
- 3.0.x src/Content/ContentDatabaseStorage.php \Drupal\content_sync\Content\ContentDatabaseStorage::cs_delete()
Implements Drupal\Core\Config\StorageInterface::delete().
@todo Ignore replica targets for data manipulation operations.
Throws
PDOException
File
- src/
Content/ ContentDatabaseStorage.php, line 80
Class
- ContentDatabaseStorage
- Defines the Database storage.
Namespace
Drupal\content_sync\ContentCode
public function cs_delete($name) {
$options = [
'return' => Database::RETURN_AFFECTED,
] + $this->options;
return (bool) $this->connection
->delete($this->table, $options)
->condition('name', $name)
->execute();
}