You are here

public function AcsfVariableStorage::delete in Acquia Cloud Site Factory Connector 8.2

Same name and namespace in other branches
  1. 8 src/AcsfVariableStorage.php \Drupal\acsf\AcsfVariableStorage::delete()

Deletes a named variable.

Parameters

string $name: The name of the variable.

Return value

int The number of deleted rows.

File

src/AcsfVariableStorage.php, line 146

Class

AcsfVariableStorage
Encapsulates functionality to interact with ACSF variables.

Namespace

Drupal\acsf

Code

public function delete($name) {
  $result = $this->connection
    ->delete('acsf_variables')
    ->condition('name', $name)
    ->execute();
  return $result;
}