You are here

public function ContentDatabaseStorage::cs_delete in Content Synchronization 3.0.x

Same name and namespace in other branches
  1. 8.2 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\Content

Code

public function cs_delete($name) {
  $options = [
    'return' => Database::RETURN_AFFECTED,
  ] + $this->options;
  return (bool) $this->connection
    ->delete($this->table, $options)
    ->condition('name', $name)
    ->execute();
}